Part Number Hot Search : 
107X901 C4256 V044ME01 01002 CH162 1N984B C1383 T45DB
Product Description
Full Text Search
 

To Download OX16CF950 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  oxford semiconductor ltd. 25 milton park, abingdon, oxon, ox14 4sh, uk tel: +44 (0)1235 824900 oxford semiconductor 2001 . data sheet . confidential . f eatures single full - duplex asynchronous channel 128 - byte deep transmitter / receiver fifo fully software compatible with industry standard 16c550 type uarts readable fifo levels system clock up to 60mhz at 5v, 50 mhz at 3.3v flexible clock prescaler from 1 to 31.875 9 - bit data framing as well as 5,6,7 and 8 detection of bad data in the receiver fifo automated in - band flow control using programmable xon/xoff characters transmitter and receiver can be disabled low power cmos 3.3v / 5v operation program mable by external microwire tm eeprom (eeprom programmed via oxford semiconductor utilities). extremely low power consumption by use of asynchronous uart core and power down (sleep) modes ultra small 48 pin tqfp package. supports all uart types 450 up to 95 0 (fully programmable) cf+ compliant (revision 1.4). 16 - bit pc card compliant (pcmcia revision 7.1) 8 bit local bus interface included for pcmcia applications 2 multi - purpose i/o pins which can be configured as interrupt inputs d escription the oxcf950 i s a low cost asynchronous 16 - bit pc card (henceforth referred to as pcmcia) or compact flash (henceforth referred to as cf) uart (and local bus) device. local bus selection is performed by use of a mode pin. note that local bus mode uses indirect addressin g, which is only supported by pcmcia. the 3.3v / 5v technology has been selected to allow the device to be used in both high and low voltage environments, as stated in the pcmcia specification. note that when the oxcf950 is operating at 3.3v, its i/o i s not 5v tolerant. the eeprom interface allows the programming of the attribute memory, uart and local configuration registers during power up or hard/soft reset. this allows different card manufacturers to modify the information contained in the attribu te memory or uart/registers as required, for example pc - card id value. a number of power - down modes are included to keep power consumption to a minimum. such features include clock division (fully programmable) and sleep modes when a function of the oxc f950 is not being used. the oxcf950 contains a single - channel ultra - high performance uart offering data rates up to 15mbps (at 5v) and 128 - deep transmitter and receiver fifos. deep fifos reduce cpu overhead and allow utilisation of higher data rates. it is software compatible with the widely used industry - standard 16c550 type devices and compatibles, as well as other ox16c95x family devices. in addition to increased performance and fifo size, the oxcf950 also provides enhanced features including improved flow control. automated software flow control using xon/xoff and automated hardware flow control using cts#/rts# and dsr#/dtr# prevent fifo over - run. flow control and interrupt thresholds are fully programmable and readable, enabling programmers to fine - t une the performance of their system. fifo levels are readable to facilitate fast driver applications. the addition of software reset enables recovery from unforeseen error conditions allowing drivers to restart gracefully. the oxcf950 supports 9 - bit data frames used in multi - drop industrial protocols. it also offers multiple external clock options for isochronous applications, e.g. isdn, xdsl. the oxcf950 also incorporates a bridge to an 8 bit local bus in local bus mode. it allows card developers to e xpand the capabilities of their products by adding peripherals to this bus. in addition, two user io pins are included to enhance external device control. these io pins can also be configured as interrupt inputs. oxcf950 data sheet
page 2 oxcf950 data sheet v1.1 oxford semiconductor ltd. c ontents features ................................ ................................ ................................ ................................ ................................ ..................... 1 description ................................ ................................ ................................ ................................ ................................ ............... 1 contents ................................ ................................ ................................ ................................ ................................ ..................... 2 1 block diagram ................................ ................................ ................................ ................................ .............................. 5 2 pin information ................................ ................................ ................................ ................................ ............................ 6 3 pin descriptions ................................ ................................ ................................ ................................ .......................... 6 4 configuration & oper ation ................................ ................................ ................................ ............................... 9 5 pcmcia / cf target c ontroller ................................ ................................ ................................ .................... 10 5.1 operation ................................ ................................ ................................ ................................ ................................ ........ 10 5.2 configuration space (card information st ructure) ................................ ................................ ................. 10 5.2.1 local bus mode space map ................................ ................................ ................................ ................................ .. 10 5 .2.2 normal mode space ma p ................................ ................................ ................................ ................................ ....... 11 5.3 access to io functio n ................................ ................................ ................................ ................................ ............... 11 5.3.1 access to internal u art ................................ ................................ ................................ ................................ ...... 11 5.3.2 access to local bus ................................ ................................ ................................ ................................ .............. 11 5.3.3 accessing local conf iguration registers ................................ ................................ ................................ . 12 5.4 cf / pcmcia interr upt ................................ ................................ ................................ ................................ ................. 14 5.4.1 interrupt generation ................................ ................................ ................................ ................................ ........... 14 5.4.2 interrupt sources ................................ ................................ ................................ ................................ ................. 15 5.5 cf/pcmcia function c onfiguration registe rs ................................ ................................ ............................... 15 5.5.1 configuration option s register ?cor? (of fset 0xf8) ................................ ................................ ............... 16 5.5.2 configuratio n status register ?c sr? (offset 0xfa) ................................ ................................ ................. 16 5.5.3 pin replacement regi ster ?prr? (offset 0 xfc) ................................ ................................ ............................ 17 5.5.4 socket and copy regi ster ?s cr? (offset 0xfe) ................................ ................................ ............................ 18 5.6 card information str ucture ................................ ................................ ................................ ................................ . 19 5.6.1 local bus mode ................................ ................................ ................................ ................................ ......................... 19 5.6.2 normal mode ................................ ................................ ................................ ................................ ............................. 20 6 internal 950 uart ................................ ................................ ................................ ................................ ...................... 23 6.1 mode selection ................................ ................................ ................................ ................................ ............................. 23 6.1.1 450 mode ................................ ................................ ................................ ................................ ................................ ....... 23 6.1.2 550 mode ................................ ................................ ................................ ................................ ................................ ....... 23 6.1.3 750 mode ................................ ................................ ................................ ................................ ................................ ....... 23 6.1.4 650 mode ................................ ................................ ................................ ................................ ................................ ....... 23 6.1.5 950 mode ................................ ................................ ................................ ................................ ................................ ....... 23 6.2 register description tables ................................ ................................ ................................ ................................ . 25 6.3 reset configuration ................................ ................................ ................................ ................................ ................. 28 6.3.1 host reset ................................ ................................ ................................ ................................ ................................ .. 28 6.3.2 software reset ................................ ................................ ................................ ................................ ....................... 28 6.4 transmitter & receiv er fifos ................................ ................................ ................................ ................................ 28 6.4.1 fifo control registe r ?fcr? ................................ ................................ ................................ ................................ 29 6.5 line control & statu s ................................ ................................ ................................ ................................ ............... 30 6.5.1 false start bit dete ction ................................ ................................ ................................ ................................ .... 30 6.5.2 line control registe r ?lcr? ................................ ................................ ................................ ................................ 30 6.5.3 line status register ?lsr? ................................ ................................ ................................ ................................ .... 30 6.6 interrupts & sleep m ode ................................ ................................ ................................ ................................ ......... 32 6.6.1 interrupt enable reg ister ?ier? ................................ ................................ ................................ ........................ 32 6.6.2 interrupt status reg ister ?isr? ................................ ................................ ................................ ........................ 33
page 3 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.6.3 interrupt descriptio n ................................ ................................ ................................ ................................ .......... 33 6.6.4 sle ep mode ................................ ................................ ................................ ................................ ................................ . 34 6.7 modem interface ................................ ................................ ................................ ................................ ......................... 34 6.7.1 modem control regist er ?mcr? ................................ ................................ ................................ .......................... 34 6.7.2 modem status registe r ?msr? ................................ ................................ ................................ ............................. 35 6.8 other standard regis ters ................................ ................................ ................................ ................................ ..... 35 6.8.1 divisor latch regist ers ?dll & dlm? ................................ ................................ ................................ ................. 35 6.8.2 scratch pad register ?spr? ................................ ................................ ................................ ................................ . 35 6.9 automatic flow contr ol ................................ ................................ ................................ ................................ ......... 35 6.9. 1 enhanced features re gister ?efr? ................................ ................................ ................................ ................... 35 6.9.2 special character de tection ................................ ................................ ................................ ............................ 37 6.9.3 automatic in - band fl ow control ................................ ................................ ................................ ..................... 37 6.9.4 automatic out - of - ban d flow control ................................ ................................ ................................ ........... 37 6.10 baud rate generation ................................ ................................ ................................ ................................ ............... 37 6.10 .1 general operation ................................ ................................ ................................ ................................ ................. 37 6.10.2 clock prescaler regi ster ?cpr? ................................ ................................ ................................ ....................... 38 6.10.3 times clock register ?tcr? ................................ ................................ ................................ ................................ ... 38 6.10.4 input clock options ................................ ................................ ................................ ................................ ............... 39 6.10.5 ttl clock module ................................ ................................ ................................ ................................ .................... 40 6.10.6 external 1x clock mo de ................................ ................................ ................................ ................................ ....... 40 6.10.7 crystal oscillator c ircuit ................................ ................................ ................................ ................................ 40 6.11 additional features ................................ ................................ ................................ ................................ .................. 40 6.11.1 additional status re gister ?asr? ................................ ................................ ................................ ...................... 40 6.11.2 fifo fill levels ?tf l & rfl? ................................ ................................ ................................ ................................ ..... 41 6.11.3 additional control r egister ?acr? ................................ ................................ ................................ .................. 41 6.11.4 transmitter trigger level ?ttl? ................................ ................................ ................................ ........................ 42 6.11.5 receiver interrupt. trigger level ?rtl? ................................ ................................ ................................ ........ 42 6.11.6 flow control levels ?fcl & fch? ................................ ................................ ................................ ....................... 42 6.11.7 device identificatio n registers ................................ ................................ ................................ ....................... 43 6.11.8 clock sele ct register ?cks? ................................ ................................ ................................ ............................... 43 6.11.9 nine - bit mode regist er ?nmr? ................................ ................................ ................................ ............................... 43 6.11.10 modem disable mask ? mdm? ................................ ................................ ................................ ................................ .... 44 6.11.11 readable fcr ?rfc? ................................ ................................ ................................ ................................ ................... 45 6.11.12 good - data status reg ister ?gds? ................................ ................................ ................................ ..................... 45 6.11.13 dma status regi ster ?dms? ................................ ................................ ................................ ................................ ... 45 6.11.14 port index register ?pix? ................................ ................................ ................................ ................................ ....... 45 6.11.15 clock alteration reg ister ?cka? ................................ ................................ ................................ ....................... 45 6.11.16 misc data register ................................ ................................ ................................ ................................ ................. 45 7 serial eeprom specif ication ................................ ................................ ................................ .......................... 46 7.1 eeprom data organisa tion ................................ ................................ ................................ ................................ ..... 46 7.2 zone 0 : header ................................ ................................ ................................ ................................ .............................. 46 7.3 zone1 : card informa tion structure ................................ ................................ ................................ ................. 47 7. 4 zone 2 : local regis ter configuration ................................ ................................ ................................ ............. 47 7.5 zone 3 : function ac cess (uart) ................................ ................................ ................................ ............................ 48 8 operating conditions ................................ ................................ ................................ ................................ ........... 49 9 dc electrical charac teristics ................................ ................................ ................................ ................... 50 9.1 5v operation ................................ ................................ ................................ ................................ ................................ .. 50 9.2 3v operation ................................ ................................ ................................ ................................ ................................ .. 51 10 timing waveforms / a c characteristics ................................ ................................ ........................... 52 10.1 common memory access ................................ ................................ ................................ ................................ ........... 52 10.2 attribute memory acc ess ................................ ................................ ................................ ................................ ....... 53 10.3 i/o access ................................ ................................ ................................ ................................ ................................ ........ 54 10.4 local bus access ................................ ................................ ................................ ................................ ........................ 55
page 4 oxcf950 data sheet v1.1 oxford semiconductor ltd. 11 package information ................................ ................................ ................................ ................................ ....... 57 12 ordering information ................................ ................................ ................................ ................................ ...... 58 notes ................................ ................................ ................................ ................................ ................................ ............................ 59 contact details ................................ ................................ ................................ ................................ ................................ . 60 disclaimer ................................ ................................ ................................ ................................ ................................ ............... 60
page 5 oxcf950 data sheet v1.1 oxford semiconductor ltd. 1 b lock d iagram a[3:0] 1 d[7:0] ce[1]# oe# we# ireq# iord# iowr# reset iois16# reg# pc card interface and control xtli xtlo clock & baudrate generator ee_do ee_di ee_ck ee_cs eeprom interface interrupt logic internal data/control bus sout sin rts# dtr# cts# dsr# dcd# ri# uart cis and configuratio n registers mio pins mio[1:0] local bus lb_cs# lb_wr# lb_rd# lb_rst (local bus mode only 1 ) config interface mode figure 1 : block diagram
page 6 oxcf950 data sheet v1.1 oxford semiconductor ltd. 2 p in i nformati on figure 2 : pin information 3 p in d escriptions pin number dir 1 name description cf/pcmcia interface and control 46, 45, 43, 42 i a[3:0] pcmcia/cf address bus, bits [3:0] 6, 7, 10, 11, 12, 37, 38, 41 i/o d[7:0] pcmcia/cf data bi - directional bus. 44 iu reg# register select and i/o enable 5 iu ce[1]# active low card enable 4 i oe# active low memory read enable 1 i we# active - low write enable used for strobing memory write data (attribute memory). 3 iu iord# active - low i/o read enable 2 iu iowr# active - low i/o write enable 32 o o wp iois16# write protect (in memory only mode) data is 16 bit (in io and memory mode) 47 iu reset pcmcia/cf reset 48 o ready# ireq# device ready (in memory only mode) active - low interrupt r equest (in io and memory mode). uart / local bus function 24 o sout irda_out uart serial data output. uart irda data output when mcr[6] is set in enhanced mode. OX16CF950 ireq# reset a3 a2 reg# a1 a0 d0 pwr gnd d1 d2 local bus normal 48 47 46 45 44 43 42 41 40 39 38 37 mode mode we# 1 36 lb_wr# / a7 iowr# 2 35 lb_rd# / a6 iord# 3 34 lb_cs# / a5 oe# 4 33 lb_rst / a4 ce1# 5 32 iois16# d7 6 31 mio0 d6 7 30 ri# gnd 8 29 dcd# pwr 9 28 dsr# d5 10 27 cts# d4 11 26 dtr# d3 12 25 rts# 13 14 15 16 17 18 19 20 21 22 23 24 ee_ck ee_cs ee_do ee_di mode mio1 gnd xtli xtlo pwr sin sout
page 7 oxcf950 data sheet v1.1 oxford semiconductor ltd. 23 i sin irda_in uart serial data input. uart irda data input when irda mode is enabl ed (see above). 29 i dcd# active - low modem data - carrier - detect input. 26 o dtr# 485_en tx_clk_out active - low modem data - terminal - ready output. if automated dtr# flow control is enabled, the dtr# pin is asserted and de - asserted if the receive r fifo reaches or falls below the programmed thresholds, respectively. in rs485 half - duplex mode, the dtr# pin may be programmed to reflect the state of the transmitter empty bit to automatically control the direction of the rs485 transceiver buffer (see register acr[4:3]). transmitter 1x clock (baud rate generator output). for isochronous applications, the 1x (or nx) transmitter clock may be asserted on the dtr# pin (see register cks[5:4]). 25 o rts# active ? low modem request - to - send output. if automat ed rts# flow control is enabled, the rts# pin is de - asserted and reasserted whenever the receiver fifo reaches or falls below the programmed thresholds, respectively. 27 i cts# active - low modem clear - to - send input. if automated cts# flow control is enabl ed, upon de - assertion of the cts# pin, the transmitter will complete the current character and enter the idle mode until the cts# pin is reasserted. note: flow control characters are transmitted regardless of the state of the cts# pin. 28 i dsr# rx _clk_in active - low modem data - set - ready input. if automated dsr# flow control is enabled, upon de - assertion of the dsr# pin, the transmitter will complete the current character and enter the idle mode until the dsr# pin is reasserted. note: flow control characters are transmitted regardless of the state of the dsr# pin external receiver clock for isochronous applications. the rx_clk_in is selected when register cks[1:0] = ?01? 30 i ri# tx_clk_in active - low modem ring - indicator input external transmit ter clock. this clock can be used by the transmitter (and indirectly by the receiver) when register cks[6] = ?1?. 21 o xtlo crystal oscillator output 20 i xtli crystal oscillator input or external clock pin. frequency 1.8mhz - > 60mhz 34 o i lbcs# a[ 5] local bus mode : active low local bus chip select normal mode : address bit 5 35 o i lbrd# 2 a[6] local bus mode : active - low local bus read enable normal mode : address bit 6 36 o i lbwr a[7] local bus mode : active - low local bus write enable normal mode : address bit 7 33 o lbrst 2 a[4] local bus mode : active high local bus reset
page 8 oxcf950 data sheet v1.1 oxford semiconductor ltd. i normal mode : address bit 4 eeprom 13 o ee_ck eeprom clock. 14 o ee_cs eeprom active - high chip select. 16 i ee_di eeprom data in. this pin should be p ulled up using 1 - 10k resistor. 15 o ee_do eeprom data out. miscellaneous pins 18, 31 i/o mio[1:0] user defined io pins. note: that if enabled, mio[1:0] can be used as an interrupt inputs. 17 i mode local bus mode select. note local bus mode requires in direct addressing, which is only supported by the pcmcia specification ?0? = normal mode (cf/pcmcia compatible) ?1? = local bus mode (pcmcia compatible) power and ground 2 39, 19, 8 g gnd ground (0 volts). the gnd pins should be tied to ground 40, 22, 9 v vdd power supply. the vdd pins should be tied to 5 volts or 3.3 volts table 1 : pin descriptions note 1: direction key: i input iu input with internal pull - up id input with external pull - down o output i/o bi - direct ional g ground v 3.3v/5v power
page 9 oxcf950 data sheet v1.1 oxford semiconductor ltd. 4 c onfiguration & o peration pcmcia and cf host systems allow for hot insertion of cards. once a card has been inserted into a host system, the host system will configure it. the pcmcia standard defines two card det ect pins, that allow the host to be notified when a card is inserted or removed. by default the device will power up in either normal or local bus mode, depending on the mode pin. the difference between these two modes is given in the following table. n ote that the local bus mode is not suitable for cf systems. normal mode (mode=0) local bus mode (mode=1) address bus is 8 bits wide. address bus is 4 bits wide. indirect access is not used. indirect access is used. no external local bus. external local bus supported. table 2 : differences between normal & local bus mode the host system will wait for the ready# signal to be active before reading the card information structure, given in attribute memory within the device. by read ing this tuple information, the host system is able to identify the device type and the necessary resources requested by the device. the host system will then load the device - driver software according to this information and will configure the io, memory and interrupt resources. after determining that the device is a memory and io type device the host will enable it?s io mode by writing to the device?s configuration options register in attribute memory space. device drivers can then access the functions a t the assigned addresses. a set of local configuration registers have been provided that can be used to control the device?s characteristics (such as interrupt handling) and report internal functional status. these registers can be accessed in io space, utilising the same io space as the local bus (local bus mode only) and are situated above the uart registers. these local registers can be set up by device drivers or from the optional eeprom. the eeprom can also be used to redefine the reset values of a ll register areas to tailor the device to the end users requirements if the default values do not meet the specific requirements of the manufacturer. this re - programming of the device can also be performed for the cis area, allowing the manufacturer to mo dify resources required, or manufacturer id values for example. as an additional enhancement, the eeprom can be used to pre - program the uart, allowing pre - configuration, without requiring device driver changes. this allows the enhanced features of the in tegrated uart to be in place prior to handover to any generic device drivers. note that a default set of tuples is provided for both operating modes thus allowing for a single chip solution in either mode.
page 10 oxcf950 data sheet v1.1 oxford semiconductor ltd. 5 pcmcia / cf t arget c ontroller 5.1 operation note : see section 10 for timing waveforms. the oxcf950 responds to a number of different cf/pcmcia accesses (detailed below). section 11 contains timing diagrams and information for each of these types of access. direct common m emory read/writes : these are required in local bus mode only to allow indirect access to attribute memory. this type of access is permitted before and after configuration to allow the reading of the cis information, but is only supported by the pcmcia spe cification. only 8 bit data, even byte accesses are performed to this memory as it is only used for access to the indirect attribute memory. if the host attempts to access an invalid address, the value of 0xff (null) is returned. direct attribute memory read/writes : access to direct attribute memory is required in both cf and pcmcia specifications. this memory space contains all the configuration information for the device, as well as the configuration registers. in cf systems, where only direct access is permitted, this space is the only memory space that is accessed by the host system. if the host attempts to access common memory in this mode, the device will return 0xff telling the host that there is no valid data in this space. in local bus mode, the direct attribute memory informs the host that indirect access is enabled allowing the host to perform indirect access to attribute memory, via common memory. valid data is 8 bits wide and on even bytes only, for direct attribute memory (as defined in the pcmcia 7.1 standard) indirect attribute memory read/writes (local bus mode only): access to indirect attribute memory is performed through direct common memory. this allows the device to provide full functionality with only 4 address pins. this acce ss is performed to read the cis and also read/write to configuration registers. valid data is 8 bit wide and on even bytes only, for indirect attribute memory (as defined in the pcmcia 7.1 standard). io read/writes : io accesses are performed to access th e uart, local bus (local bus mode) and local configuration registers. data width is restricted to 8 bits, as required by the standard uart function. as the device cis information configures the card as a single function device, no base addresses need to be defined thus simplifying access to the function. as reads and writes are immediate, there is no requirement to hold the wait# signal in its active state, thus providing maximum speed access to io space. 5.2 configuration space (card information structure) 5.2.1 local bus mode space map direct indirect main cis either: a) normal default b) bluetooth default c) custom cis (downloaded from eeprom) 0xff common (valid at even locations only) 0x00 0x00 0x00 0xff 0xff 0x00 0xff indirect access register hard coded cis to link to indirect space 0x0f 0x10 0x0f 0x10 0x7f 0x80 attribute function configuration registers 0xf6 0xf8 not valid not valid not valid figure 3 : local bus mode memory space map
page 11 oxcf950 data sheet v1.1 oxford semiconductor ltd. figure 4 : normal mode memory space map 5.2.2 normal mode space map 5.3 access to io function 5.3.1 access to internal uart access to the internal uart is achieved via standard io mapping. as the device is configured as a single function device, no base address is required to access the uart. as io mapping is used, access to the uart is permitted only after the card has been configured. once the configuration options register has been set in the attribute area, the uart can be accessed following the ma pping shown in table 3 . uart address (hex) cf/pcmcia offset from address 0 for uart function in io space (hex) 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 table 3 : uart's mapping in i/o space 5.3.2 access to local bus access to the internal local bus is achieved via standard io mapping. the local bus function is available in local bus mode only as it?s device pins are used as the extended address bits required for direct access in normal mode. indirect access is only supported in the pcmcia specification, so the local bus is only available in pcmcia systems. as the device is configured as a single function device, no base address is required to access the local bus. as io mapping is used, access to the local bu s is permitted only after the card has been configured. once the configuration options register has been set in the attribute area, the local bus can be accessed following the mapping shown in table table 4 . this access is permi tted only if bit[0] is reset to ?0? in the mdr register in the uart, otherwise the local configuration registers will be accessed rather than the local bus. local bus address 1 (hex) cf/pcmcia offset from address 0 for local bus function in io space (hex) 0 8 1 9 2 a 3 b 4 c 5 d 6 e 7 f table 4 : local bus mapping in i/o space note 1 : although only 4 bits of io address space are requested by the default cis in the device, the address range may be extended past these four bit s. this can be achieved by modifying the cis, via the eeprom, and connecting the extended address bits to the external local bus device. direct indirect main cis either: a) normal default b) bluetooth default c) custom cis (downloaded from eeprom) 0xff common (valid at even locations only) 0x00 0x00 0x00 0xff 0xff 0x00 0xff attribute additional storage space, which can be downloaded from the eeprom. 0x7f 0x80 function configuration registers 0xf8 0xf6 not valid not valid not valid
page 12 oxcf950 data sheet v1.1 oxford semiconductor ltd. 5.3.3 accessing local configuration registers the local configuration registers are a set of device specific registers, wh ich can be accessed via standard io mapping. as the device is configured as a single function device, no base address is required to access the local configuration registers. since io mapping is used, access to the local configuration registers is permit ted only after the card has been configured. once the configuration options register has been set in the attribute area, the local configuration registers can be accessed following the mapping shown in table 5 . this access is al ways permitted in normal mode. in local bus mode access is only permitted if bit[0] is set to ?1? in the mdr register in the uart, otherwise the local bus will be accessed rather than the local configuration registers. cf/pcmcia offset from address 0 for local configuration registers in io space (hex) register map 8 eeprom status and control register 9 multi - purpose i/o configuration register a uart divider/interrupt pulse width divider register b mode status register c interrupt status register d so ft uart/local bus reset register e reserved f reserved table 5 : local configuration register's mapping in i/o space each of the local configuration registers are explained in the following sections eeprom status and control r egister ?esc?(offset 0x08) this register defines the control on the serial eeprom. the individual bits are described in table 6 . read/write bits description eeprom pcmcia reset 7:5 reserved - r 000 4 eeprom data in . for reads from the eeprom this input bit is the output - data (do) of the external eeprom connected to ee_di pin - r x 3 eeprom data out . for writes to the eeprom, this output bit feeds the input - data of the external eeprom (di). this bit is output on the d evices ee_do and clocked into the eeprom by ee_ck - r/w 0 2 eeprom clock . for reads or writes to the external eeprom toggle this bit to generate an eeprom clock (ee_ck pin) - r/w 0 1 eeprom chip select . when ?1? the eeprom chip select pin ee_cs is a ctivated (high). when ?0? ee_cs is de - activated (low) - r/w 0 0 eeprom valid a ?1? indicates that a valid eeprom program header is present - r x table 6 : eeprom status and control register
page 13 oxcf950 data sheet v1.1 oxford semiconductor ltd. multi - purpose i/o configuration register ?mic? (offset 0x09) this register configures the operation for the multi - purpose i/o pins ?mio[1:0]? as follows read/write bits description eeprom pcmcia reset 7:4 reserved - r 0000 3:2 mio1 configuration register 00 - > mio1 is a non - inver ting input pin 01 - > mio1 is an inverting input pin 10 - > mio1 is an output pin driving ?0? 11 - > mio1 is an output pin driving ?1? w r/w 00 1:0 mio0 configuration register 00 - > mio0 is a non - inverting input pin 01 - > mio0 is an inverting input pin 10 - > mio0 is an output pin driving ?0? 11 - > mio0 is an output pin driving ?1? w r/w 00 table 7 : multi purpose i/o configuration register uart divider/interrupt pulse width divider register ?div? (offset 0x0a) this register defines t he divide values (2^n division) for the clocks to the uart and interrupt pulse generator signal. this allows the device to be set up in its lowest power mode possible, and is fully programmable by the host or the eeprom. the default value for the uart cloc k divider provides a clock to the uart of x1. the default value for the interrupt pulse divider provides a clock to the interrupt processor of /32. see section 5.4.1 note that the uart clock rate should not be changed without then resetting the uart(see srt register). read/write bits description eeprom pcmcia reset 7:6 reserved - r 00 5:3 uart clock divide value. the division ratio is 2^n, giving 1, 2, 4, 8, 16, 32, 64, 128 w r/w 000 2:0 interrupt pulse divide value: t his field should be set under the following clock freq. conditions 000 - > when clock frequency is less than 2mhz 001 - > when clock frequency is between 2 and 4mhz 010 - > when clock frequency is between 4 and 8mhz 011 - > when clock frequency is between 8 an d 16mhz 100 - > when clock frequency is between 16 and 32mhz 101 - > when clock frequency is between 32 and 64mhz 110 - > reserved 111 - > reserved w r/w 101 table 8 : uart divider/ interrupt pulse width divider mode status register ?m sr? (offset 0x0b) this read only register return the state of the mode pin (i.e. whether in normal or local bus modes). read/write bits description eeprom pcmcia reset 7:1 reserved - r 0000000 0 mode o = normal, 1 = local bus - r x table 9 : mode status register
page 14 oxcf950 data sheet v1.1 oxford semiconductor ltd. interrupt status and control register ?isr? (offset 0x0c) this register controls the assertion of interrupts from the user i/o pins (mio[1:0]) as well as returning the internal status of the interrupt sources. read/write bits description eeprom pcmcia reset 7:5 reserved - r 000 4 uart interrupt status this bit reflects the state of the internal uart interrupt - r 0 3 mio[1] interrupt mask when set to ?1? allows pin mio[1] to assert an interrupt on the devices ireq# pin. the state of the mio[1] signal that causes an interrupt is dependent upon the polarity set by the register fields mic[3:2]. w r/w 0 2 mio[0] interrupt mask when set to ?1? allows pin mio[0] to assert an interrupt on the devices ireq# pin. th e state of the mio[0] signal that causes an interrupt is dependent upon the polarity set by the register fields mic[1:0]. w r/w 0 1 mio1 internal state this bit reflects the state of the internal mio[1]. the internal mio[1] signal reflects the non - invert ed or inverted state of mio[1] pin - r x 0 mio0 internal state this bit reflects the state of the internal mio[0]. the internal mio[0] signal reflects the non - inverted or inverted state of mio[0] pin - r x table 10 : interrupt sta tus register soft uart/local bus reset register ?srt? (offset 0x0d) this register controls the soft reset passed to the uart and local bus reset. these reset lines are in addition to the soft reset that may be produced by the host (bit[7] of the cor reg ister in attribute memory space). note that the local bus reset is used in local bus mode only and not in normal mode. note these bits are not self - clearing. read/write bits description eeprom pcmcia reset 7:2 reserved - r 000000 1 active high soft reset for uart w r/w 0 0 active high soft reset for local bus w r/w 0 table 11 : soft uart / local bus reset (lb reset used in local bus mode only) 5.4 cf / pcmcia interrupt 5.4.1 interrupt generation pcmcia/cf cards support pulse or lev el type interrupt signals to request interrupt service from the host system. the cis of the card specifies whether pulse, level or both types of interrupt can be generated. once the host has read the cis it is able to set the levlreq field in the configura tion options register (cor) to tell the card which type of interrupts should be generated. the oxcf950 is capable of generating either type of interrupt. however, to reduce power consumption, the default cis states that only level type interrupts can be g enerated. a custom cis can be constructed that specifies the card has the ability to generate pulse type interrupts, if this is required, by using an external eeprom. the oxcf950 uses a programmable clock divider circuit to generate pulse type interrupts signals. the pulse that is generated is one clock cycle (after division) in length. the divider circuit can be programmed by setting the contents of the interrupt pulse
page 15 oxcf950 data sheet v1.1 oxford semiconductor ltd. divide value field in the div local configuration register (see section 6.3.4.3). this allows the length of the pulse to be varied, so that different clock frequencies can be used and the pulse can still be kept as short as possible, without violating the minimum length of 50 m s as defined in the pcmcia standard. table 12 shows how the register should be programmed for different clock frequencies. clock frequency (mhz) interrupt divider setting f < 2 000 2 <= f < 4 001 4 <= f < 8 010 8 <= f < 1 6 011 16 <= f < 32 100 32 <= f < 64 101 110 reserved 111 table 12 : interrupt pulse divide value settings 5.4.2 interrupt sources the oxcf950 has three possible interrupt sources. these are the internal uart, and the two multi - pu rpose i/o pins, which can be configured as interrupts using the mio configuration register (mic ? see section 6.3.4.2) and the interrupt status and control register (isr ? see section 6.3.4.5) when the oxcf950 is requesting interrupt service, the intr fie ld within the configuration status register (csr ? see section 6.5.2) will be set to 1. otherwise this field will be cleared to 0. the intr field value is controlled by the interrupt source (i.e uart or mio [1:0]). the status of the actual interrupts can be read from the isr register. 5.5 cf/pcmcia function configuration registers each pcmcia/cf card?s i/o function must implement function configuration registers (fcr). these registers allow the host to configure the function provided by the card, and are mapped into the attribute memory space at the location specified within the config tuple (in the cis). the config tuple defines a base address for the function configuration registers and a number corresponding to how may registers are supported (4 regist ers in the oxcf950). each of these registers has read/write capability and is mapped at even location, consistent with the design of attribute memory. the registers supported in the oxcf950 are shown in the following table. offset from fcr base address attribute memory address register 0 f8 configuration options register 2 fa configuration and status register 4 fc pin replacement register 8 fe socket & copy register table 13 : configuration register mapping due to the type of function the oxcf950 configures the card to be, and the fact that it is a single function device, only a sub - set of the total number of configuration registers are required. the definition of each configuration register is detailed in the next few sub - se ctions.
page 16 oxcf950 data sheet v1.1 oxford semiconductor ltd. 5.5.1 configuration options register ?cor? (offset 0xf8) the configuration options register is used to configure pcmcia/cf cards that have programmable address decoders. once the card?s client driver has successfully parsed the cis, it will attempt to obtain system resources, as requested by the cis. on completion of this it assigns the resources to the card via the cor. the cor format and description is given in table 14 . d7 d6 d5 d4 d3 d2 d1 d0 sreset levireq function configuration index field type description sreset r/w software reset setting this field to ?1? places the card in the reset state. this is equivalent to setting the reset signal (on pin) except this sreset field is not reset. returning this field to ?0 ? leaves the card in the same un - configured, reset state as the card would be following a power - up and hard reset. levireq 1 r/w level mode ireq# setting this field to ?1? enables level type interrupts setting this field to ?0? enables pulse type interrupt s function configuration index r/w configuration index the host sets this field to the value of the configuration entry number field of a configuration table entry tuple as defined in the cis. on setting the non - zero value in this field the function io i s enabled and io accesses are allowed. when the field is set to zero (e.g. after a hard reset) the card will be configured to memory only mode and all io accesses will be ignored by the card. table 14 : configuration option register note 1 the default tuples in the cis tell the host that only level type interrupts are supported to allow lowest power consumption. the oxcf950 supports both level and pulse type interrupts, and if a particular manufacturer requires to use pulse type, or both, then the cis can be modified using the external eeprom. 5.5.2 configuration status register ?csr? (offset 0xfa) the configuration and status register is an optional register, supported by the oxcf950. the register allows additional control over a func tion?s configuration and reports status related to the function?s configuration. d7 d6 d5 d4 d3 d2 d1 d0 changed sigchg iois8 rfu audio pwrdwn intr intrack field type description changed r if a pcmcia/cf card is using the i/o interface, the function? s pin replacement register is present and one or more of the state change signals in the pin replacement register are set to one(1), or one event bits in the extended status register are set (1) and the corresponding enable bit is set (1), the function sha ll set this field to one (1). if a pcmcia/cf card is not using the i/o interface or the function?s pin replacement register is not present, this field is undefined and should be ignored. sigchg 1 r/w this field serves as a gate for stschg# if a pcmcia/cf card is using the i/o interface and both the changed and sigchg fields are set to one (1), the function shall assert stschg#.
page 17 oxcf950 data sheet v1.1 oxford semiconductor ltd. if a pcmcia/cf card is using the i/o interface and this field is reset to zero (0), the function shall not assert stschg#. if a pcmcia/cf card is not using the i/o interface or the function?s pin replacement register is not present, this field is undefined and should be ignored. iois8 r/w the host sets this field to one (1) when it can provide i/o cycles only with an 8 - bit d[7..0 ] data path. the card is guaranteed that accesses to the 16 - bit registers will occur as two byte accesses rather than as a single 16 - bit access. rfu - reserved. must be zero (0). audio 2 r/w this bit is set to one (1) to enable audio information on spkr# when the card is configured. pwddwn 3 r/w when the host sets this field to one (1), the function shall enter a power - down state, if such a state exists. if a pcmcia/cf card function does not have a power - down state, the function shall ignore this field. intr r interrupt request / acknowledge ? this field reports whether the function is requesting interrupt servicing and may be used to acknowledge the host system is ready to process another interrupt request from the pcmcia/cf card. the function shall se t this field to one (1) when it is requesting interrupt service. the function shall set this field to zero (0) when it is not requesting interrupt service. writes to this field are ignored when the intrack field of all configuration and status registers o n the pcmcia/cf card are reset to zero (0). intrack r/w single function cards ignore this field on writes and always return zero (0). table 15 : configuration status register note 1 the stschg# signal is optional and is not supp orted on the oxcf950, to reduce the complexity of the device. note 2 audio is not supported on the device. note 3 the oxcf950 does not support a specific power down mode, since it is a low power device that features a number of sleep modes (see section 7 for further details). 5.5.3 pin replacement register ?prr? (offset 0xfc) the pin replacement register is implemented to provide information about ready, wp or the bvd[2..1] status when implementing the i/o interface. d7 d6 d5 d4 d3 d2 d1 d0 cbvd1 cbvd2 crea dy cwprot rbvd1 rbvd2 rready rwprot field description cbvd1 this bit is set (1) when the corresponding bit, rbvd1, changes state. this bit may also be written by the host. cbvd2 this bit is set (1) when the corresponding bit, rbvd2, changes state. this bit may also be written by the host.
page 18 oxcf950 data sheet v1.1 oxford semiconductor ltd. written by the host. cready this bit is set (1) when the corresponding bit, rready, changes state. this bit may also be written by the host. cwprot this bit is set (1) when the corresponding bit, rwprot, changes state. this bit may also be written by the host. rbvd1 when read, this bit represents the internal state of the battery voltage detect circuits which would be on the bvd1 pin. when this bit is written as 1 the corresponding cbvd1 bit is also written. when this bit is written as 0, the cbvd1 bit is unaffected. rbvd2 when read, this bit represents the internal state of the battery voltage detect circuits which would be on the bvd2 pin. when this bit is written as 1 the corresponding cbvd2 bit is also written. when this bit is wri tten as 0, the cbvd2 bit is unaffected. rready when read, this bit represents the internal state of the ready signal. this bit may also be used to determine the state of ready as that pin has been relocated for use as interrupt request on io cards. when this bit is written as 1 the corresponding ?changed? bit is also written. when this bit is written as 0, the ?changed? bit is unaffected. rwprot when read, this bit represents the state of the wp signal. this signal may also be used to determine the state of the write protect switch when pin 33 is being used for iois16#. when this bit is written as 1 the corresponding ?changed? bit is also written. when this bit is written as 0, the ?changed? bit is unaffected. table 16 : pin repl acement register 5.5.4 socket and copy register ?scr? (offset 0xfe) this is an optional read/write register, implemented by the oxcf950, which the pcmcia/cf card may use to distinguish between similar cards installed in a system. this register is always writte n by the system before writing the card's function configuration index field in the configuration option register. d7 d6 d5 d4 d3 d2 d1 d0 reserved copy number socket number field description reserved this bit is reserved for future standardization. t his bit must be set to zero (0) by software when the register is written. copy number pcmcia/cf cards that indicate in their cis that they support more than one copy of identically configured cards, should have a copy number (0 to max twin cards, max = n - 1) written back to the socket and copy register. this field indicates to the card that it is the n?th copy of the card installed in the system, which is identically configured. the first card installed receives the value 0. this permits identical cards de signed to share a common set of i/o ports while remaining uniquely identifiable and consecutively ordered. socket number this field indicates to the pcmcia/cf card that it is located in the n?th socket. the first socket is numbered o. this permits any ca rds designed to do so to share a common set of i/o ports while remaining uniquely identifiable. table 17 : socket and copy register
page 19 oxcf950 data sheet v1.1 oxford semiconductor ltd. 5.6 card information structure 5.6.1 local bus mode value (hex) tuple name description direct attribute 0 x01 0x02 0x00 0xff cistpl_device cis should start with a cistpl_device tuple. 0x03 0x00 cistpl_indirect use indirect access register (located in direct common memory). 0xff cistpl_end indirect attribute 0x13 0x03 0x43 0x49 0x53 c istpl_linktarget the first tuple in indirect memory must be a cistpl_linktarget to prove that a valid cis chain is present. the host will start processing from location 0 of the indirect attribute memory, after following an implied link from the primary ci s chain in direct attribute memory. 0x1c 0x03 0x03 0x00 0xff cistpl_device_oc this tuple allows the device to be operated at 3.3 volts as well as at 5.0 volts. 0x20 0x04 0x79 0x02 0x0b 0x95 cistpl_manfid this tuple specifies the manufacturer id and prod uct id codes (0x0279 and 0x950b respectively). 0x21 0x02 0x02 0x01 cistpl_funcid this tuple specifies the function of the device, in this case the tuple states the device is a serial port. 0x22 0x04 0x00 0x02 0x0f 0x7f cistpl_funce this tuple is the fun ction extension tuple, and provides more detailed information about the function of the device, and provides the following information: serial port includes a 16550 compatible uart. space, mark, odd and even parity 5, 6, 7, 8 bit chars 1, 1.5 and 2 stop bit operation. 0x15 0x15 0x07 0x01 0x50 0x43 0x20 0x43 0x41 0x52 0x44 0x00 cistpl_vers_1 the level 1 version / product information tuple provides the host with the following information: the device supports version 7.1 of the pc card specification. the manufacturer string is ?pc card? the product string is ?generic? the additional product information strings are empty.
page 20 oxcf950 data sheet v1.1 oxford semiconductor ltd. 0x47 0x45 0x4e 0x45 0x52 0x49 0x43 0x00 0x00 0x00 0xff 0x1a 0x04 0x00 0x02 0xf8 0x0f cistpl_config the cistpl_config tuple provides basic configuration information including the following: base address of the configuration registers (specified as 0xfa) which configuration registers are present and supported (configuration options register, configuration status register, pin re placement register, and socket and copy register are supported). index of the last configuration table entry (set to 0x02). 0x1b 0x0d 0xc1 0x41 0x99 0x01 0xb5 0x1e 0xa0 0x40 0x0f 0xb0 0xff 0xff 0x07 cistpl_cftable_entry this tuple specifies one particula r configuration that the device can be used in. each configuration has an index number, which is used by the host to select it. this configuration has the following properties: index is 0x01 ready signal is active, and configuration is for i/o and memory m ode. nominal vcc is set to be 3.30 volts. requests 16 bytes of i/o space. level interrupts, interrupt sharing are supported. any interrupt (irq0 - 15) can be used. maximum number of identical cards is set to 8. 0x1b 0x04 0x02 0x01 0x01 0x55 cistpl_cftable_ entry this configuration is based on the previous configuration, except that it requests vcc to be 5.0 volts. 0xff cistpl_end end of cis table 18 : card information structure values (local bus mode) 5.6.2 normal mode value (hex) tupl e name description direct attribute 0x01 0x03 0x00 0x00 0xff cistpl_device cis should start with a cistpl_device tuple. (allows operation at 5.0 volts)
page 21 oxcf950 data sheet v1.1 oxford semiconductor ltd. 0x1c 0x03 0x03 0x00 0xff cistpl_device_oc the cistpl_device_oc tuple allows operation at 3.3 volts. 0x20 0x04 0x79 0x02 0x0b 0x95 cistpl_manfid this tuple specifies the manufacturer id and product id codes (0x0279 and 0x950b respectively). 0x21 0x02 0x02 0x01 cistpl_funid this tuple specifies the function of the device, in this case the tuple states the device is a serial port. 0x22 0x04 0x00 0x02 0x0f 0x7f cistpl_funce this tuple is the function extension tuple, and provides more detailed information about the function of the device, and provides the following information: serial port includes a 16550 compatible uart. space, mark, odd and even parity 5, 6, 7, 8 bit chars 1, 1.5 and 2 stop bit operation. 0x15 0x15 0x07 0x01 0x43 0x46 0x20 0x43 0x41 0x52 0x44 0x00 0x47 0x45 0x4e 0x45 0x52 0x49 0x43 0x00 0x00 0x00 0xff cistpl_vers_1 the level 1 version / product information tuple provides the host with the following information: the device supports version 7.1 of the pc card specification. the manufacturer string is ?cf card? the product string is ?generic? the additional product information strings ar e empty. 0x1a 0x04 0x00 0x04 0xf8 0x0f cistpl_config the cistpl_config tuple provides basic configuration information including the following: base address of the configuration registers (specified as 0xfa) which configuration registers are present and su pported (configuration options register, configuration status register, pin replacement register, and socket and copy register are supported). index of the last configuration table entry (set to 0x04). 0x1b 0x0f cistpl_cftable_entry this tuple specifies one particular configuration that the device can be used in. each configuration has an index number, which is used by the host to select it. this configuration has the following pr operties:
page 22 oxcf950 data sheet v1.1 oxford semiconductor ltd. 0xc1 0x41 0x99 0x01 0xb5 0x1e 0xa8 0x60 0 xf8 0x03 0x0f 0xb0 0xff 0xff 0x07 configuration has the following pr operties: index is 0x01 ready signal is active, and configuration is for i/o and memory mode. nominal vcc is set to be 3.30 volts. requests 16 bytes of i/o space, starting at 0x03f8. level interrupts, interrupt sharing are supported. any interrupt (irq0 - 15 ) can be used. maximum number of identical cards is set to 8. 0x1b 0x03 0x02 0x08 0x2f cistpl_cftable_entry this configuration is based on the previous configuration, except that it specifies the i/o space can start anywhere. 0x1b 0x0e 0xc3 0x41 0x99 0x 01 0x55 0xa8 0x60 0xf8 0x03 0x0f 0xb0 0xff 0xff 0x07 cistpl_cftable_entry this tuple specifies one particular configuration that the device can be used in. each configuration has an index number, which is used by the host to select it. this configuration h as the following properties: index is 0x01 ready signal is active, and configuration is for i/o and memory mode. nominal vcc is set to be 5.0 volts. requests 16 bytes of i/o space, starting at 0x03f8. level interrupts, interrupt sharing are supported. any interrupt (irq0 - 15) can be used. maximum number of identical cards is set to 8. 0x1b 0x03 0x04 0x08 0x2f cistpl_cftable_entry this configuration is based on the previous configuration, except that it specifies the i/o space can start anywhere. 0xff cist pl_end table 19 : card information structure values (normal mode)
page 23 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6 i nternal 950 uart the internal uart within the oxcf950 is based on the 16c950 rev b, and is henceforth referred to as the 950 core. some modes of the 16c950 rev b t hat are configured by pin options such as extended - 550 mode are not available in this embedded core. 6.1 mode selection the 950 core is software compatible with the 16c450, 16c550, 16c654 and 16c750 uarts. the operation of the 950 depends on a number of mode s ettings. these modes are referred to throughout this data sheet. the fifo depth and compatibility modes are tabulated below: uart mode fifo size fcr[0] enhanced mode (efr[4]=1) fcr[5] (guarded with lcr[7] = 1) 450 1 0 x x 550 16 1 0 0 650 128 1 1 x 7 50 128 1 0 1 950* 128 1 1 x table 20 : uart mode configuration * note that 950 mode configuration is identical to 650 configuration 6.1.1 450 mode after a hardware reset bit 0 of the fifo control register (?fcr?) is cleared, hence the 950 is compatible with the 16c450. the transmitter and receiver fifos (referred to as the ?transmit holding register? and ?receiver holding register? respectively) have a depth of one. this is referred to as ?byte mode?. when fcr[0] is cleared, all other mode selection parameters are ignored. 6.1.2 550 mode after a hardware reset, writing a 1 to fcr[0] will increase the fifo size to 16, providing compatibility with 16c550 devices. 6.1.3 750 mode writing a 1 to fcr[0] will increase the fifo size to 16. in a similar fa shion to 16c750, the fifo size can be further increased to 128 by writing a 1 to fcr[5]. note that access to fcr[5] is protected by lcr[7]. i.e., to set fcr[5], software should first set lcr[7] to temporarily remove the guard. once fcr[5] is set, the softw are should clear lcr[7] for normal operation. the 16c750 additional features over the 16c550 are available as long as the uart is not put into enhanced mode (i.e. efr[4] should be ?0?). these features are: 1. deeper fifos 2. automatic rts/cts out - of - band flow control 3. sleep mode 6.1.4 650 mode the 950 is compatible with the 16c650 when efr[4] is set, i.e. the device is in enhanced mode. as 650 software drivers usually put the device into enhanced mode, running 650 drivers on the 950 will result in 650 compatibility w ith 128 deep fifos, as long as fcr[0] is set. note that the 650 emulation mode of the 950 provides 128 byte deep fifos whereas the standard 16c650 has only 32 byte fifos. 650 mode has the same enhancements as the 16c750 over the 16c550, but these are enab led using different registers. there are also additional enhancements over those of the 16c750 in this mode, these are: 1. automatic in - band flow control 2. special character detection 3. infra - red ?irda - format? transmit and receive mode 4. transmit trigger levels 5. optional clock prescaler 6.1.5 950 mode the additional features offered in 950 mode generally only apply when the uart is in enhanced mode (efr[4]=?1?). provided fcr[0] is set, in enhanced mode the fifo size is 128. note that 950 mode configuration is identic al to that of 650 mode, however additional 950 specific features are
page 24 oxcf950 data sheet v1.1 oxford semiconductor ltd. enabled using the additional control register ?acr? (see section 6.11.3 ). in addition to larger fifos and higher baud rates, the enhancements of the 950 over the 16c654 are: selectable arbitrary trigger levels for the receiver and transmitter fifo interrupts improved automatic flow control using selectable arbitrary thresholds dsr#/dtr# automatic flow control transmitter and receiver can be optionally disabled software reset of device readable fifo fill levels optional generation of an rs - 485 buffer enable signal four - byte device identification (0x16c95006) readable status for automatic in - band and out - of - band flow control external 1x clock modes (see section 6.10.4 ) flexible ?m n/8? clock prescaler (see section 6.10.2 ) programmable sample clock to allow data rates up to 15 mbps (see section 6.10.3 ) at 5v 9 - bit data mode the 950 trigger levels are enabled when acr[5] is set (bits 4 to 7 of fcr are ignored). then arbitrary trigger levels can be defined in rtl, ttl, fcl and fch registers (see section 6.11 ). the additional status register (?asr?) offe rs flow control status for the local and remote transmitters. fifo levels are readable using rfl and tfl registers. the uart has a flexible prescaler capable of dividing the system clock by any value between 1 and 31.875 in steps of 0.125. it divides the system clock by an arbitrary value in ?m n/8? format, where m and n are 5 and 3 - bit binary numbers programmed in cpr[7:3] and cpr[2:0] respectively. this arrangement offers a great deal of flexibility when choosing an input clock frequency to synthesize arbitrary baud rates. the default division value is 4 to provide backward compatibility with 16c650 devices. the user may apply an external 1x (or nx) clock for the transmitter and receiver to the ri# and dsr# pin respectively. the transmitter clock may be asserted on the dtr# pin. the external clock options are selected through the cks register (offset 0x02 of icr). it is also possible to define the over - sampling rate used by the transmitter and receiver clocks. the 16c450/16c550 and compatible devices employ 16 times over - sampling, i.e. there are 16 clock cycles per bit. however, the 950 can employ any over - sampling rate from 4 to 16 by programming the tcr register. this allows the data rates to be increased to 460.8 kbps using a 1.8432mhz clock, or 15 mbps using a 60 mhz clock (at 5v). the default value after a reset for this register is 0x00, which corresponds to a 16 cycle sampling clock. writing 0x01, 0x02 or 0x03 will also result in a 16 cycle sampling clock. to program the value to any value from 4 to 15 it is necessary to write this value into tcr i.e. to set the device to a 13 cycle sampling clock it would be necessary to write 0x0d to tcr. for further information see sections 6.10.3 . the 950 also offers 9 - bit data fr ames for multi - drop industrial applications.
page 25 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.2 register description tables the three address lines select the various registers in the uart. since there are more than 8 registers, selection of the registers is also dependent on the state of the line con trol register ?lcr? and additional control register ?acr?: 1. lcr[7]=1 enables the divider latch registers dll and dlm. 2. lcr specifies the data format used for both transmitter and receiver. writing 0xbf (an unused format) to lcr enables access to the 650 comp atible register set. writing this value will set lcr[7] but leaves lcr[6:0] unchanged. therefore, the data format of the transmitter and receiver data is not affected. write the desired lcr value to exit from this selection. 3. acr[7]=1 enables access to the 950 specific registers. 4. acr[6]=1 enables access to the indexed control register set (icr) registers as described on page 27 . register name address r/w bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 thr 1 000 w data to be t ransmitted rhr 1 000 r data received ier 1,2 650/950 mode cts interrupt mask rts interrupt mask special char. detect 550/750 mode 001 r/w unused alternate sleep mode sleep mode modem interrupt mask rx stat interrupt mask thre interrupt mask rxrdy interrupt mask fcr 3 650 mode rhr trigger level thr trigger level 750 mode rhr trigger level fifo size unused 950 mode 010 w unused dma mode / tx trigger enable flush thr flush rhr enable fifo isr 3 010 r fifos enabled interrupt priority (enhanced mode) interrupt priority (all modes) interrupt pending lcr 4 011 r/w divisor latch access tx break force parity odd / even parity parity enable number of stop bits data length mcr 3,4 550/750 mode unused cts & rts flow control 650/950 mode 100 r/w baud prescale irda mode xon - any internal loop back enable out2 (int en) out1 rts dtr lsr 3,5 normal data error tx empty thr empty rx break framing error parity error overrun error rxrdy 9 - bit data mode 101 r 9 th rx data bit msr 3 1 10 r dcd ri dsr cts delta dcd trailing ri edge delta dsr delta cts spr 3 normal temporary data storage register and indexed control register offset value bits 9 - bit data mode 111 r/w unused 9 th tx data bit additional standard registers ? these registe rs require divisor latch access bit (lcr[7]) to be set to 1. dll 000 r/w divisor latch bits [7:0] (least significant byte) dlm 001 r/w divisor latch bits [15:8] (most significant byte) table 21 : standard 550 compatible register s
page 26 oxcf950 data sheet v1.1 oxford semiconductor ltd. register name address r/w bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 to access these registers lcr must be set to 0xbf efr 010 r/w cts flow control rts flow control special char detect enhanced mode in - band flow control mode xon1 100 r/ w xon character 1 9 - bit mode special character 1 xon2 101 r/w xon character 2 9 - bit mode special character 2 xoff1 110 r/w xoff character 1 9 - bit mode special character 3 xoff2 111 r/w xoff character 2 9 - bit mode special character 4 tabl e 22 : 650 compatible registers register name address r/w bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 asr 1,6,7 001 r/w 7 tx idle fifo size fifo - sel special char detect dtr rts remote tx disabled tx disabled rfl 6 011 r number of characters in the receiver fifo tfl 3,6 100 r number of characters in the transmitter fifo icr 3,8,9 101 r/w data read/written depends on the value written to the spr prior to the access of this register (see tabl e 24 ) table 23 : 950 specific registers register access notes: note 1: requires lcr[7] = 0 note 2: requires acr[7] = 0 note 3: requires that last value written to lcr was not 0xbf note 4: to read this register acr[7] must be = 0 note 5: to read this register acr[6] must be = 0 note 6: requires acr[7] = 1 note 7: only bits 0 and 1 of this register can be written note 8: to read this register acr[6] must be = 1 note 9: this register acts as a window through which to read and write regist ers in the indexed control register set
page 27 oxcf950 data sheet v1.1 oxford semiconductor ltd. register name spr offset 10 r/w bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 indexed control register set acr 0x00 r/w addit - ional status enable icr read enable 950 trigger level enable dtr definition and c ontrol auto dsr flow control enable tx disable rx disable cpr 0x01 r/w 5 bit ?integer? part of clock prescaler 3 bit ?fractional? part of clock prescaler tcr 0x02 r/w unused 4 bit n - times clock selection bits [3:0] cks 0x03 r/w tx 1x mode tx clk select bdout on dtr dtr 1x tx clk rx 1x mode disable bdout receiver clock sel[1:0] ttl 0x04 r/w unused transmitter interrupt trigger level (0 - 127) rtl 0x05 r/w unused receiver interrupt trigger level (1 - 127) fcl 0x06 r/w unused automatic flow control lower tr igger level (0 - 127) fch 0x07 r/w unused automatic flow control higher trigger level (1 - 127) id1 0x08 r hardwired id byte 1 (0x16) id2 0x09 r hardwired id byte 1 (0xc9) id3 0x0a r hardwired id byte 1 (0x50) rev 0x0b r hardwired revision byte (0x06) cs r 0x0c w writing 0x00 to this register will reset the uart (except the cks and cka registers) nmr 0x0d r/w unused 9 th bit schar 4 9 th bit schar 3 9 th bit schar 2 9 th bit schar 1 9 th - bit int. en. 9 bit enable mdm 0x0e r/w unused d dcd wakeup disable trai ling ri edge disable d dsr wakeup disable d cts wakeup disable rfc 0x0f r fcr[7] fcr[6] fcr[5] fcr[4] fcr[3] fcr[2] fcr[1] fcr[0] gds 0x10 r unused good data status dms 0x11 r/w force internal txrdy inactive force internal rxrdy inactive unused interna l txrdy status ( r ) internal rxrdy status ( r ) pidx 0x12 r hardwired port index ( 0x00 ) cka 0x13 r/w unused res. write ?0? res. write ?0? invert dtr signal invert internal tx clock invert internal rx clock mdr 0xfe r/w unused local bus enable tabl e 24 : indexed control register set note 10: the spr offset column indicates the value that must be written into spr prior to reading / writing any of the indexed control registers via icr. offset values not listed in the table are reserved for future use and must not be used. to read or write to any of the indexed control registers use the following procedure.
page 28 oxcf950 data sheet v1.1 oxford semiconductor ltd. writing to icr registers: ensure that the last value written to lcr was not 0xbf (reserved for 650 compatible register access value). write the desired offset to spr (address 111 2 ). write the desired value to icr (address 101 2 ). reading from icr registers: ensure that the last value written to lcr was not 0xbf (see above). write 0x00 offset to spr to select acr. set bit 6 of acr (icr read enable) by writing x1xxxxxx 2 to address 101 2 . ensure that other bits in acr are not changed. (software drivers should keep a copy of the contents of the acr elsewhere since reading icr involves overwriting acr!) write the desired offset to spr (address 111 2 ). read the desired value from icr (address 101 2 ). write 0x00 offset to spr to select acr. clear bit 6 of acr bye writing x0xxxxxx 2 to icr, thus enabling access to standard registers again. 6.3 reset configuration 6.3.1 host reset after a hardwa re reset or soft reset (bit 7 of cor register), all writable registers are reset to 0x00, with the following exceptions: 1. dll which is reset to 0x01. 2. cpr is reset to 0x20. the state of read - only registers following a hardware reset is as follows: rhr[7:0 ]: indeterminate rfl[6:0]: 0000000 2 tfl[6:0]: 0000000 2 lsr[7:0]: 0x60 signifying that both the transmitter and the transmitter fifo are empty msr[3:0]: 0000 2 msr[7:4]: dependent on modem input lines dcd, ri, dsr and cts respectively isr[7:0]: 0x01, i.e. n o interrupts are pending asr[7:0]: 1xx00000 2 rfc[7:0]: 00000000 2 gds[7:0]: 00000001 2 dms[7:0]: 00000010 2 cka[7:0]: 00000000 2 the reset state of output signals for are tabulated below: signal reset state sout inactive high rts# inactive high dtr# inac tive high table 25 : output signal reset state 6.3.2 software reset an additional feature available in the 950 core is software resetting of the serial channel. the software reset is available using the csr register. software reset has t he same effect as a hardware reset except it does not reset the clock source selections (i.e. cks register and cka register). to reset the uart write 0x00 to the channel software reset register ?csr?. 6.4 transmitter & receiver fifos both the transmitter and receiver have associated holding registers (fifos), referred to as the transmitter holding register (thr) and receiver holding register (rhr) respectively. in normal operation, when the transmitter finishes transmitting a byte it will remove the next dat a from the top of the thr and proceed to transmit it. if the thr is empty, it will wait until data is written into it. if thr is empty and the last character being transmitted has been completed (i.e. the transmitter shift register is empty) the transmitte r is said to be idle. similarly, when the receiver finishes receiving a byte, it will transfer it to the bottom of the rhr. if the rhr is full, an overrun condition will occur (see section 6.5.3 ). data is written into the bott om of the thr queue and read from the top of the rhr queue completely asynchronously to the operation of the transmitter and receiver. the size of the fifos is dependent on the setting of the fcr register. when in byte mode, these fifos only accept one by te at a time before indicating that they are full; this is compatible with the 16c450. when in a fifo mode, the size of the fifos is either 16 (compatible with the 16c550) or 128. data written to the thr when it is full is lost. data read from the rhr wh en it is empty is invalid. the empty or full status of the fifos are indicated in the line status
page 29 oxcf950 data sheet v1.1 oxford semiconductor ltd. register ?lsr? (see section 6.5.3 ). interrupts can be generated or dma signals can be used to transfer data to/from the fifos. th e number of items in each fifo may also be read back from the transmitter fifo level (tfl) and receiver fifo level (rfl) registers (see section 6.11.2 ). 6.4.1 fifo control register ?fcr? fcr[0]: enable fifo mode logic 0 t byte mode. logic 1 t fifo mode. this bit should be enabled before setting the fifo trigger levels. fcr[1]: flush rhr logic 0 t no change. logic 1 t flushes the contents of the rhr this is only operative when already in a fifo mode. the rhr is automatically flush ed whenever changing between byte mode and a fifo mode. this bit will return to zero after clearing the fifos. fcr[2]: flush thr logic 0 t no change. logic 1 t flushes the contents of the thr, in the same manner as fcr[1] does for the rhr. dma transfer signalling: fcr[3]: dma signalling mode / tx trigger level enable logic 0 t dma mode '0'. logic 1 t dma mode '1'. dma signals are not bonded out in the oxcf950, so this control only affects the transmitter trigger level in dma mode 0. fcr[5:4]: thr trig ger level generally in 450, 550, extended 550 and 950 modes these bits are unused (see section 6.1 for mode definition). in 650 mode they define the transmitter interrupt trigger levels and in 750 mode fcr[5] increases the fifo size. 450, 550 and extended 550 modes: the transmitter interrupt trigger levels are set to 1 and fcr[5:4] are ignored. 650 mode: in 650 mode the transmitter interrupt trigger levels are set to the following values: fcr[5:4] transmit interrupt trigger level 00 16 01 32 10 64 11 112 table 26 : transmit interrupt trigger levels these levels only apply when in enhanced mode and in dma mode 1 (fcr[3] = 1), otherwise the trigger level is set to 1. a transmitter empty interrupt w ill be generated (if enabled) if the tfl falls below the trigger level. 750 mode: in 750 compatible non - enhanced (efr[4]=0) mode, transmitter trigger level is set to 1, fcr[4] is unused and fcr[5] defines the fifo depth as follows: fcr[5]=0 transmitter a nd receiver fifo size is 16 bytes. fcr[5]=1 transmitter and receiver fifo size is 128 bytes. in non - enhanced mode fcr[5] is only writable when lcr[7] is set. note that in enhanced mode, the fifo size is also increased to 128 bytes when fcr[0] is set. 950 mode: setting acr[5]=1 enables arbitrary transmitter trigger level setting using the ttl register (see section 6.11.4 ), hence fcr[5:4] are ignored. fcr[7:6]: rhr trigger level in 550, extended 550, 650 and 750 modes, the rece iver fifo trigger levels are defined using fcr[7:6]. the interrupt trigger level and upper flow control trigger level where appropriate are defined by l2 in the table below. l1 defines the lower flow control trigger level where applicable. separate upper a nd lower flow control trigger levels introduce a hysteresis element in in - band and out - of - band flow control (see section 6.9 ). mode 650 fifo size 128 750 fifo size 128 550 fifo size 16 fcr [7:6] l1 l2 l1 l2 l1 l2 00 1 1 6 1 1 n/a 1 01 16 32 1 32 n/a 4 10 32 112 1 64 n/a 8 11 112 120 1 112 n/a 14 table 27 : receiver trigger levels in byte mode (450 mode) the trigger levels are all set to 1. in all cases, a receiver data interrupt will be genera ted (if enabled) if the receiver fifo level (?rfl?) reaches the upper trigger level l2. 950 mode: when 950 trigger levels are enabled (acr[5]=1), more flexible trigger levels can be set by writing to the ttl, rtl, fcl and fch (see section 6.11 ) hence ignoring fcr[7:6].
page 30 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.5 line control & status 6.5.1 false start bit detection on the falling edge of a start bit, the receiver will wait for 1/2 bit and re - synchronise the receiver?s sampling clock onto the centre of the start bit. the star t bit is valid if the sin line is still low at this mid - bit sample and the receiver will proceed to read in a data character. verifying the start bit prevents the receiver from assembling a false data character due to a low going noise spike on the sin inp ut. once the first stop bit has been sampled, the received data is transferred to the rhr and the receiver will then wait for a low transition on sin signifying the next start bit. the receiver will continue receiving data even if the rhr is full or the receiver has been disabled (see section 6.11.3 ) in order to maintain framing synchronisation. the only difference is that the received data does not get transferred to the rhr. 6.5.2 line control register ?lcr? the lcr specifies the data format that is common to both transmitter and receiver. writing 0xbf to lcr enables access to the efr, xon1, xoff1, xon2 and xoff2, dll and dlm registers. this value (0xbf) corresponds to an unused data format. writing the value 0xbf to lcr will set l cr[7] but leaves lcr[6:0] unchanged. therefore, the data format of the transmitter and receiver data is not affected. write the desired lcr value to exit from this selection. lcr[1:0]: data length lcr[1:0] determines the data length of serial characters. note however, that these values are ignored in 9 - bit data framing mode, i.e. when nmr[0] is set. lcr[1:0] data length 00 5 bits 01 6 bits 10 7 bits 11 8 bits table 28 : lcr data length configuration lcr[2]: number of stop bits lcr[2] defines the number of stop bits per serial character. lcr[2] data length no. stop bits 0 5,6,7,8 1 1 5 1.5 1 6,7,8 2 table 29 : lcr stop bit number configuration lcr[5:3]: parity type the selected parity type will be ge nerated during transmission and checked by the receiver, which may produce a parity error as a result. in 9 - bit mode parity is disabled and lcr[5:3] is ignored. lcr[5:3] parity type xx0 no parity bit 001 odd parity bit 011 even parity bit 101 parity b it forced to 1 111 parity bit forced to 0 table 30 : lcr parity configuration lcr[6]: transmission break logic 0 t break transmission disabled. logic 1 t forces the transmitter data output sout low to alert the communication termi nal, or send zeros in irda mode. it is the responsibility of the software driver to ensure that the break duration is longer than the character period for it to be recognised remotely as a break rather than data. lcr[7]: divisor latch enable logic 0 t ac cess to dll and dlm registers disabled. logic 1 t access to dll and dlm registers enabled. 6.5.3 line status register ?lsr? this register provides the status of data transfer to cpu. lsr[0]: rhr data available logic 0 t rhr is empty: no data available logic 1 t rhr is not empty: data is available to be read. lsr[1]: rhr overrun error logic 0 t no overrun error. logic 1 t data was received when the rhr was full. an overrun error has occurred. the error is flagged when the data would normally have been transferr ed to the rhr. lsr[2]: received data parity error logic 0 t no parity error in normal mode or 9 th bit of received data is ?0? in 9 - bit mode. logic 1 t data has been received that did not have correct parity in normal mode or 9 th bit of received data is ?1 ? in 9 - bit mode. the flag will be set when the data item in error is at the top of the rhr and cleared following a read of the lsr. in 9 -
page 31 oxcf950 data sheet v1.1 oxford semiconductor ltd. bit mode lsr[2] is no longer a flag and corresponds to the 9 th bit of the received data in rhr. lsr[3]: received data framing error logic 0 t no framing error. logic 1 t data has been received with an invalid stop bit. this status bit is set and cleared in the same manner as lsr[2]. when a framing error occurs, the uart will try to re - synchronise by assuming that the er ror was due to sampling the start bit of the next data item. lsr[4]: received break error logic 0 t no receiver break error. logic 1 t the receiver received a break. a break condition occurs when the sin line goes low (normally signifying a start bit) an d stays low throughout the start, data, parity and first stop bit. (note that the sin line is sampled at the bit rate). one zero character with associated break flag set will be transferred to the rhr and the receiver will then wait until the sin line retu rns high. the lsr[4] break flag will be set when this data item gets to the top of the rhr and it is cleared following a read of the lsr. lsr[5]: thr empty logic 0 t transmitter fifo (thr) is not empty. logic 1 t transmitter fifo (thr) is empty. lsr[6]: t ransmitter and thr empty logic 0 t the transmitter is not idle logic 1 t thr is empty and the transmitter has completed the character in shift register and is in idle mode. (i.e. set whenever the transmitter shift register and the thr are both empty.) lsr [7]: receiver data error logic 0 t either there are no receiver data errors in the fifo or it was cleared by an earlier read of lsr. logic 1 t at least one parity error, framing error or break indication in the fifo. in 450 mode lsr[7] is permanently clea red, otherwise this bit will be set when an erroneous character is transferred from the receiver to the rhr. it is cleared when the lsr is read. note that in 16c550 this bit is only cleared when all of the erroneous data are removed from the fifo . in 9 - bit data framing mode parity is permanently disabled, so this bit is not affected by lsr[2].
page 32 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.6 interrupts & sleep mode the serial interrupt on the oxcf950 is routed through to the oxcf950 interrupt control, regardless of mcr[3]. 6.6.1 interrupt enable register ?i er? serial channel interrupts are enabled using the interrupt enable register (?ier?). ier[0]: receiver data available interrupt mask logic 0 t disable the receiver ready interrupt. logic 1 t enable the receiver ready interrupt. ier[1]: transmitter empty interrupt mask logic 0 t disable the transmitter empty interrupt. logic 1 t enable the transmitter empty interrupt. ier[2]: receiver status interrupt normal mode: logic 0 t disable the receiver status interrupt. logic 1 t enable the receiver status interrup t. 9 - bit data mode: logic 0 t disable receiver status and address bit interrupt. logic 1 t enable receiver status and address bit interrupt. in 9 - bit mode (i.e. when nmr[0] is set) reception of a character with the address - bit (9 th bit) set can generate a level 1 interrupt if ier[2] is set. ier[3]: modem status interrupt mask logic 0 t disable the modem status interrupt. logic 1 t enable the modem status interrupt. ier[4]: sleep mode logic 0 t disable sleep mode. logic 1 t enable sleep mode whereby the internal clock of the channel is switched off. sleep mode is described in section 6.6.4 . ier[5]: special character interrupt mask or alternate sleep mode 9 - bit data framing mode: logic 0 t disable the special character rece ive interrupt. logic 1 t enable the special character receive interrupt. in 9 - bit data mode, the receiver can detect up to four special characters programmed in special character 1 to 4. when ier[5] is set, a level 5 interrupt is asserted when a match is detected. 650/950 modes (non - 9 - bit data framing): logic 0 t disable the special character receive interrupt. logic 1 t enable the special character receive interrupt. in 16c650 compatible mode when the device is in enhanced mode (efr[4]=1), this bit en ables the detection of special characters. it enables both the detection of xoff characters (when in - band flow control is enabled via efr[3:0]) and the detection of the xoff2 special character (when enabled via efr[5]). 750 mode (non - 9 - bit data framing): logic 0 t disable alternate sleep mode. logic 1 t enable alternate sleep mode whereby the internal clock of the channel is switched off. in 16c750 compatible mode (i.e. non - enhanced mode), this bit is used an alternate sleep mode and has the same effect as ier[4]. (see section 6.6.4 ) ier[6]: rts interrupt mask logic 0 t disable the rts interrupt. logic 1 t enable the rts interrupt. this enable is only operative in enhanced mode (efr[4]=1). in non - enhanced mode, rts inter rupt is permanently enabled. ier[7]: cts interrupt mask logic 0 t disable the cts interrupt. logic 1 t enable the cts interrupt. this enable is only operative in enhanced mode (efr[4]=1). in non - enhanced mode, cts interrupt is permanently enabled.
page 33 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.6.2 in terrupt status register ?isr? the source of the highest priority interrupt pending is indicated by the contents of the interrupt status register ?isr?. there are nine sources of interrupt at six levels of priority (1 is the highest) as tabulated below: le vel interrupt source isr[5:0] see note 3 - no interrupt pending 1 000001 1 receiver status error or address - bit detected in 9 - bit mode 000110 2a receiver data available 000100 2b receiver time - out 001100 3 transmitter thr empty 000010 4 modem status change 000000 5 2 in - band flow control xoff or special character (xoff2) or special character 1, 2, 3 or 4 or bit 9 set in 9 - bit mode 010000 6 2 cts or rts change of state 100000 table 31 : interrupt status identification codes n ote1: isr[0] indicates whether any interrupts are pending. note2: interrupts of priority levels 5 and 6 cannot occur unless the uart is in enhanced mode. note3: isr[5] is only used in 650 & 950 modes. in 750 mode, it is ?0? when fifo size is 16 and ?1? whe n fifo size is 128. in all other modes it is permanently set to ?0?. 6.6.3 interrupt description level 1: receiver status error interrupt (isr[5:0]=?000110?): normal (non - 9 - bit) mode: this interrupt is active whenever any of lsr[1], lsr[2], lsr[3] or lsr[4] are set. these flags are cleared following a read of the lsr. this interrupt is masked with ier[2]. 9 - bit mode: this interrupt is active whenever any of lsr[1], lsr[2], lsr[3] or lsr[4] are set. the receiver error interrupt due to lsr[1], lsr[3] and lsr[4 ] is masked with ier[3]. the ?address - bit? received interrupt is masked with nmr[1]. the software driver can differentiate between receiver status error and received address - bit (9 th data bit) interrupt by examining lsr[1] and lsr[7]. in 9 - bit mode lsr[7] is only set when lsr[3] or lsr[4] is set and it is not affected by lsr[2] (i.e. 9 th data bit). level 2a: receiver data available interrupt (isr[5:0]=?000100?): this interrupt is active whenever the receiver fifo level is above the interrupt trigger leve l. level 2b: receiver time - out interrupt (isr[5:0]=?001100?): a receiver time - out event, which may cause an interrupt, will occur when all of the following conditions are true: the uart is in a fifo mode there is data in the rhr. there has been no read o f the rhr for a period of time greater than the time - out period. there has been no new data received and written into the rhr for a period of time greater than the time - out period. the time - out period is four times the character period (including start and stop bits) measured from the centre of the first stop bit of the last data item received. reading the first data item in rhr clears this interrupt. level 3: transmitter empty interrupt (isr[5:0]=?000010?): this interrupt is set when the transmit fifo l evel falls below the trigger level. it is cleared on an isr read of a level 3 interrupt or by writing more data to the thr so that the trigger level is exceeded. note that when 950 mode trigger levels are enabled (acr[5]=1) and the transmitter trigger leve l of zero is selected (ttl=0x00), a transmitter empty interrupt will only be asserted when both the transmitter fifo and transmitter shift register are empty and the sout line has returned to idle marking state. level 4: modem change interrupt (isr[5:0]= ?000000?): this interrupt is set by a modem change flag (msr[0], msr[1], msr[2] or msr[3]) becoming active due to changes in the input modem lines. this interrupt is cleared following a read of the msr. level 5: receiver in - band flow control (xoff) detec t interrupt, receiver special character (xoff2) detect interrupt, receiver special character 1, 2, 3 or 4 interrupt or 9 th bit set interrupt in 9 - bit mode (isr[5:0]=?010000?): a level 5 interrupt can only occur in enhanced - mode when any of the following co nditions are met: a valid xoff character is received while in - band flow control is enabled. a received character matches xoff2 while special character detection is enabled. a received character matches special character 1, 2, 3 or 4 in 9 - bit mode (see sect ion 6.11.9 ).
page 34 oxcf950 data sheet v1.1 oxford semiconductor ltd. it is cleared on an isr read of a level 5 interrupt. level 6: cts or rts changed interrupt (isr[5:0]=?100000?): this interrupt is set whenever either of the cts# or rts# pins changes state from low to high. it i s cleared on an isr read of a level 6 interrupt. 6.6.4 sleep mode for a channel to go into sleep mode, all of the following conditions must be met: sleep mode enabled (ier[4]=1 in 650/950 modes, or ier[5]=1 in 750 mode): the transmitter is idle, i.e. the trans mitter shift register and fifo are both empty. sin is high. the receiver is idle. the receiver fifo is empty (lsr[0]=0). the uart is not in loopback mode (mcr[4]=0). changes on modem input lines have been acknowledged (i.e. msr[3:0]=0000). no interrupts ar e pending. a read of ier[4] (or ier[5] if a 1 was written to that bit instead) shows whether the power - down request was successful. the uart will fully retain its programmed state whilst in power - down mode. the channel will automatically exit power - down m ode when any of the conditions 1 to 7 becomes false. it may be woken manually by clearing ier[4] (or ier[5] if the alternate sleep mode is enabled). sleep mode operation is not available in irda mode. 6.7 modem interface 6.7.1 modem control register ?mcr? mcr[0] : dtr logic 0 t force dtr# output to inactive (high). logic 1 t force dtr# output to active (low). note that dtr# can be used for automatic out - of - band flow control when enabled using acr[4:3] (see section 6 .11.3 ). mcr[1]: rt s logic 0 t force rts# output to inactive (high). logic 1 t force rts# output to active (low). note that rts# can be used for automatic out - of - band flow control when enabled using efr[6] (see section 6.9.4 ). mcr[2]: out1 logi c 0 t force out1# output low when loopback mode is disabled. logic 1 t force out1# output high. out1# is not bonded out in the oxcf950, but is internally used for loopback testing mcr[3]: out2 logic 0 t force out2# output low when loopback mode is disabl ed. logic 1 t force out2# output high. out2# is not bonded out in the oxcf950, but is internally used for loopback testing mcr[4]: loopback mode logic 0 t normal operating mode. logic 1 t enable local loop - back mode (diagnostics). in local loop - back mode, the transmitter output (sout) and the modem outputs (dtr#, rts#) are set in - active (high), and the receiver inputs sin, cts#, dsr#, dcd#, and ri# are all disabled. internally the transmitter output is connected to the receiver input and dtr#, rts#, out1# and out2# are connected to modem status inputs dsr#, cts#, ri# and dcd# respectively. in this mode, the receiver and transmitter interrupts are fully operational. the modem control interrupts are also operational, but the interrupt sources are now t he lower four bits of the modem control register instead of the four modem status inputs. the interrupts are still controlled by the ier. mcr[5]: enable xon - any in enhanced mode or enable out - of - band flow control in non - enhanced mode 650/950 modes (enhan ced mode): logic 0 t xon - any is disabled. logic 1 t xon - any is enabled. in enhanced mode (efr[4]=1), this bit enables the xon - any operation. when xon - any is enabled, any received data will be accepted as a valid xon (see in - band flow control, section 6.9.3 ). 750 mode (non - enhanced mode): logic 0 t cts/rts flow control disabled. logic 1 t cts/rts flow control enabled.
page 35 oxcf950 data sheet v1.1 oxford semiconductor ltd. in non - enhanced mode, this bit enables the cts/rts out - of - band flow control. mcr[6]: irda mode logic 0 t st andard serial receiver and transmitter data format. logic 1 t data will be transmitted and received in irda format. this function is only available in enhanced mode. it requires a 16x clock to function correctly. mcr[7]: baud rate prescaler select logic 0 t normal (divide by 1) baud rate generator prescaler selected. logic 1 t divide - by - ?m n/8? baud rate generator prescaler selected. where m & n are programmed in cpr (icr offset 0x01). after a hardware reset, cpr defaults to 0x20 (divide - by - 4) and mcr[7 ] is reset to ?0?. user writes to this flag will only take effect in enhanced mode. see section 6.9.1 . 6.7.2 modem status register ?msr? msr[0]: delta cts# indicates that the cts# input has changed since the last time the msr was re ad. msr[1]: delta dsr# indicates that the dsr# input has changed since the last time the msr was read. msr[2]: trailing edge ri# indicates that the ri# input has changed from low to high since the last time the msr was read. msr[3]: delta dcd# indicates that the dcd# input has changed since the last time the msr was read. msr[4]: cts this bit is the complement of the cts# input. it is equivalent to rts (mcr[1]) during internal loop - back mode. msr[5]: dsr this bit is the complement of the dsr# input. it is equivalent to dtr (mcr[0]) during internal loop - back mode. msr[6]: ri this bit is the complement of the ri# input. in internal loop - back mode it is equivalent to the internal out1. msr[7]: dcd this bit is the complement of the dcd# input. in internal loop - back mode it is equivalent to the internal out2. 6.8 other standard registers 6.8.1 divisor latch registers ?dll & dlm? the divisor latch registers are used to program the baud rate divisor. this is a value between 1 and 65535 by which the input clock is di vided by in order to generate serial baud rates. after a hardware reset, the baud rate used by the transmitter and receiver is given by: divisor inputclock baudrate * 16 = where divisor is given by dll + ( 256 x dlm ). more flexible baud rate generation options are also available. see section 6.10 for full details. 6.8.2 scratch pad register ?spr? the scratch pad register does not affect operation of the rest of the uart in any way and can be used for temporary data storage. the register may also be used to define an offset value to access the registers in the indexed control register set. for more information on indexed control registers see tabl e 24 and section 6.11 . 6.9 automatic flow con trol automatic in - band flow control, automatic out - of - band flow control and special character detection features can be used when in enhanced mode and are software compatible with the 16c654. alternatively, 16c750 compatible automatic out - of - band flow con trol can be enabled when in non - enhanced mode. in 950 mode, in - band and out - of - band flow controls are compatible with 16c654, with the addition of fully programmable flow control thresholds. 6.9.1 enhanced features register ?efr? writing 0xbf to lcr enables acce ss to the efr and other enhanced mode registers. this value corresponds to an
page 36 oxcf950 data sheet v1.1 oxford semiconductor ltd. unused data format. writing 0xbf to lcr will set lcr[7] but leaves lcr[6:0] unchanged. therefore, the data format of the transmitter and receiver data is not affected. write the desired lcr value to exit from this selection. note: in - band transmit and receive flow control is disabled in 9 - bit mode. efr[1:0]: in - band receive flow control mode when in - band receive flow control is enabled, the uart compares the received data with t he programmed xoff character(s). when this occurs, the uart will disable transmission as soon as any current character transmission is complete. the uart then compares the received data with the programmed xon character(s). when a match occurs, the uart wi ll re - enable transmission (see section 6.11.6 ). for automatic in - band flow control, bit 4 of efr must be set. the combinations of software receive flow control can be selected by programming efr[1:0] as follows: logic [00] t in - band receive flow control is disabled. logic [01] t single character in - band receive flow control enabled, recognising xon2 as the xon character and xoff2 as the xoff character. logic [10] t single character in - band receive flow control enabled, recogn ising xon1 as the xon character and xoff1 and the xoff character. logic [11] t the behaviour of the receive flow control is dependent on the configuration of efr[3:2]. single character in - band receive flow control is enabled, accepting both xon1 and xon2 a s valid xon characters and both xoff1 and xoff2 as valid xoff characters when efr[3:2] = ?01? or ?10?. efr[1:0] should not be set to ?11? when efr[3:2] is either ?00?. efr[3:2]: in - band transmit flow control mode when in - band transmit flow control is enab led, xon/xoff character(s) are inserted into the data stream whenever the rfl passes the upper trigger level and falls below the lower trigger level respectively. for automatic in - band flow control, bit 4 of efr must be set. the combinations of software t ransmit flow control can then be selected by programming efr[3:2] as follows: logic [00] t in - band transmit flow control is disabled. logic [01] t single character in - band transmit flow control enabled, using xon2 as the xon character and xoff2 as the xof f character. logic [10] t single character in - band transmit flow control enabled, using xon1 as the xon character and xoff1 as the xoff character. logic[11] t the value efr[3:2] = ?11? is reserved for future use and should not be used efr[4]: enhanced mod e logic 0 t non - enhanced mode. disables ier bits 4 - 7, isr bits 4 - 5, fcr bits 4 - 5, mcr bits 5 - 7 and in - band flow control. whenever this bit is cleared, the setting of other bits of efr are ignored. logic 1 t enhanced mode. enables the enhanced mode function s. these functions include enabling ier bits 4 - 7, fcr bits 4 - 5, mcr bits 5 - 7. for in - band flow control the software driver must set this bit first. if this bit is set, out - of - band flow control is configured with efr bits 6 - 7, otherwise out - of - band flow co ntrol is compatible with 16c750. efr[5]: enable special character detection logic 0 t special character detection is disabled. logic 1 t while in enhanced mode (efr[4]=1), the uart compares the incoming receiver data with the xoff2 value. upon a correct match, the received data will be transferred to the rhr and a level 5 interrupt (xoff or special character) will be asserted if level 5 interrupts are enabled (ier[5] set to 1). efr[6]: enable automatic rts flow control. logic 0 t rts flow control is dis abled (default). logic 1 t rts flow control is enabled in enhanced mode (i.e. efr[4] = 1), where the rts# pin will be forced inactive high if the rfl reaches the upper flow control threshold. this will be released when the rfl drops below the lower thresho ld. the 650 and 950 software drivers should use this bit to enable rts flow control. the 750 compatible driver uses mcr[5] to enable rts flow control. efr[7]: enable automatic cts flow control. logic 0 t cts flow control is disabled (default). logic 1 t c ts flow control is enabled in enhanced mode (i.e. efr[4] = 1), where the data transmission is prevented whenever the cts# pin is held inactive high. the 650 and 950 software drivers should use this bit to enable cts flow control. the 750 compatible driver uses mcr[5] to enable cts flow control.
page 37 oxcf950 data sheet v1.1 oxford semiconductor ltd. 6.9.2 special character detection in enhanced mode (efr[4]=1), when special character detection is enabled (efr[5]=1) and the receiver matches received data with xoff2, the 'received special character' flag asr[4] will be set and a level 5 interrupt is asserted, (if enabled by ier[5]). this flag will be cleared following a read of asr. the received status (i.e. parity and framing) of special characters does not have to be valid for these characters to be accepted as valid matches. 6.9.3 automatic in - band flow control when in - band receive flow control is enabled, the uart will compare the received data with xoff1 or xoff2 characters to detect an xoff condition. when this occurs, the uart will disable transmission as soon as any current character transmission is complete. status bits isr[4] and asr[0] will be set. a level 5 interrupt will occur if enabled by ier[5]. the uart will then compare all received data with xon1 or xon2 characters to detect an xon condition. when this occu rs, the uart will re - enable transmission and status bits isr[4] and asr[0] will be cleared. any valid xon/xoff characters will not be written into the rhr. an exception to this rule occurs if special character detection is enabled and an xoff2 character i s received that is a valid xoff. in this instance, the character will be written into the rhr. the received status (i.e. parity and framing) of xon/xoff characters does not have to be valid for these characters to be accepted as valid matches. when the ' xon any' flag (mcr[5]) is set, any received character is accepted as a valid xon condition and the transmitter will be re - enabled. the received data will be transferred to the rhr. when in - band transmit flow control is enabled, the rfl will be sampled whe never the transmitter is idle (briefly, between characters, or when the thr is empty) and an xon/xoff character may be inserted into the data stream if needed. initially, remote transmissions are enabled and hence asr[1] is clear. if asr[1] is clear and th e rfl has passed the upper trigger level (i.e. is above the trigger level), xoff will be sent and asr[1] will be set. if asr[1] is set and the rfl falls below the lower trigger level, xon will be sent and asr[1] will be cleared. if transmit flow control i s disabled after an xoff has been sent, an xon will be sent automatically. 6.9.4 automatic out - of - band flow control automatic rts/cts flow control is selected by different means, depending on whether the uart is in enhanced or non - enhanced mode. when in non - enh anced mode, mcr[5] enables both rts and cts flow control. when in enhanced mode, efr[6] enables automatic rts flow control and efr[7] enables automatic cts flow control. this allows software compatibility with both 16c650 and 16c750 drivers. when automati c cts flow control is enabled and the cts# input becomes active, the uart will disable transmission as soon as any current character transmission is complete. transmission is resumed whenever the cts# input becomes inactive. when automatic rts flow contr ol is enabled, the rts# pin will be forced inactive when the rfl reaches the upper trigger level and will return to active when the rfl falls below the lower trigger level. the automatic rts# flow control is anded with mcr[1] and hence is only operational when mcr[1]=1. this allows the software driver to override the automatic flow control and disable the remote transmitter regardless by setting mcr[1]=0 at any time. automatic dtr/dsr flow control behaves in the same manner as rts/cts flow control but is e nabled by acr[3:2], regardless of whether or not the uart is in enhanced mode. 6.10 baud rate generation 6.10.1 general operation the uart contains a programmable baud rate generator that is capable of taking any clock input from dc to 60mhz(at 5v) and dividing it by any 16 - bit divisor number from 1 to 65535 written into the dlm (msb) and dll (lsb) registers. in addition to this, a clock prescaler register is provided which can further divide the clock by values in the range 1.0 to 31.875 in steps of 0.125. also, a further feature is the times clock register ?tcr? which allows the sampling clock to be set to any value between 4 and 16. these clock options allow for highly flexible baud rate generation capabilities from almost any input clock frequency (up to 60mhz at 5v). the actual transmitter and receiver baud rate is calculated as follows: prescaler divisor sc inputclock baudrate * * = where :
page 38 oxcf950 data sheet v1.1 oxford semiconductor ltd. sc = sample clock values defined in tcr[3:0] divisor = dll + ( 256 x dlm ) prescaler = 1 when mcr[7] = ?0? else: = m + ( n / 8 ) where: m = cpr[7:3] (integer part ? 1 to 31) n = cpr[2:0] (fractional part ? 0.000 to 0.875 ) see next section for a discussion of the clock prescaler and times clock register. after a hardware reset, the prescaler is bypassed (set to 1) and tcr is set to 0x00 ( i.e. sc = 16). assuming this default configuration, the following table gives the divisors required to be programmed into the dll and dlm registers in order to obtain various standard baud rates: dlm:dll divisor word baud rate (bits per second) 0x0900 50 0x0300 110 0x0180 300 0x00c0 600 0x0060 1,200 0x0030 2,400 0x0018 4,800 0x000c 9,600 0x0006 19,200 0x0004 28,800 0x0003 38,400 0x0002 57,600 0x0001 115,200 table 32 : standard pc com port baud rate divisors (assuming a 1.8432mhz crystal) 6.10.2 clock prescaler register ?cpr? the cpr register is located at offset 0x01 of the icr the prescaler divides the system clock by any value in the range of 1 to ?31 7/8? in steps of 1/8. the divisor takes the form ?m + n/8?, where m is the 5 bit value defined in cpr[7:3] and n is the 3 bit value defined in cpr[2:0]. the prescaler is by - passed and a prescaler value of ?1? is selected by default when mcr[7] = 0. mcr[7] is reset to ?0? after a hardware reset but may be overwritten by sof tware. note however that since access to mcr[7] is restricted to enhanced mode only, efr[4] should first be set and then mcr[7] set or cleared as required. if mcr[7] is set by software, the internal clock prescaler is enabled. upon a hardware reset, cpr defaults to 0x20 (division - by - 4). compatibility with existing 16c550 baud rate divisors is maintained using a 1.8432mhz clock. for higher baud rates use a higher frequency clock, e.g. 14.7456mhz, 18.432mhz, 32mhz, 40mhz or 60.0mhz. the flexible prescale r allows system designers to generate popular baud rates using clocks that are not integer multiples of the required rate. when using a non - standard clock frequency, compatibility with existing 16c550 software drivers may be maintained with a minor softwar e patch to program the on - board prescaler to divide the high frequency clock down to 1.8432mhz. table 34 on the following page gives the prescaler values required to operate the uarts at compatible baud rates with various differe nt crystal frequencies. also given is the maximum available baud rates in tcr = 16 and tcr = 4 modes with cpr = 1. 6.10.3 times clock register ?tcr? the tcr register is located at offset 0x02 of the icr the 16c550 and other compatible devices such as 16c650 and 16c750 use a 16 times (16x) over - sampling channel clock. the 16x over - sampling clock means that the channel clock runs at 16 times the selected serial bit rate. it limits the highest baud rate to 1/16 of the system clock when using a divisor latch value o f unity. however, the 950 uart is designed in a manner to enable it to accept other multiplications of the bit rate clock. it can use values from 4x to 16x clock as programmed in the tcr as long as the clock (oscillator) frequency error, stability and jitt er are within reasonable parameters. upon hardware reset the tcr is reset to 0x00 which means that a 16x clock will be used, for compatibility with the 16c550 and compatibles. the maximum baud - rates available for various system clock frequencies at all of the allowable values of tcr are indicated in table 35 on the following page. these are the values in bits - per - second (bps) that are obtained if the divisor latch = 0x01 and the prescaler is set to 1. the oxcf950 has the facility to operate at baud - rates up to 15 mbps at 5v. the table below indicates how the value in the register corresponds to the number of clock cycles per bit. tcr[3:0] is used to program the clock. tcr[7:4] are unused and will return ?0000? if read.
page 39 oxcf950 data sheet v1.1 oxford semiconductor ltd. tcr[3:0 ] clock cycles per bit 0000 to 0011 16 0100 to 1111 4 - 15 table 33 : tcr sample clock configuration the use of tcr does not require the device to be in 650 or 950 mode although only drivers that have been written to take advantage of the 950 mode features will be able to access this register. writing 0x01 to the tcr will not switch the device into 1x isochronous mode, this is explained in the following section. (tcr has no effect in isochronous mode). if 0x01, 0x10 or 0x11 is wri tten to tcr the device will operate in 16x mode. reading tcr will always return the last value that was written to it irrespective of mode of operation. clock frequency (mhz) cpr value effective crystal frequency error from 1.8432mhz (%) max. baud rate with cpr = 1, tcr = 16 max. baud rate with cpr = 1, tcr = 4 1.8432 0x08 (1.000) 1.8432 0.00 115,200 460,800 7.3728 0x20(4.000) 1.8432 0.00 460,800 1,843,200 14.7456 0x80 (8.000) 1.8432 0.00 921,600 3,686,400 18.432 0x50 (10.000) 1.8432 0.00 1,152, 000 4,608,000 32.000 0x8b(17.375) 1.8417 0.08 2,000,000 8,000,000 33.000 0x8f (17.875) 1.8462 0.16 2,062,500 8,250,000 40.000 0xae (21.750) 1.8391 0.22 2,500,000 10,000,000 50.000 0xd9 (27.125) 1.8433 0.01 3,125,000 12,500,000 60.000* 0xff (31.875) 1. 8824 2.13 3,750,000 15,000,000 table 34 : example clock options and their assosiacted maximum baud rates system clock (mhz) sampling clock tcr value 1.8432 7.372 14.7456 18.432 32 40 50 60 16 0x00 115,200 460,750 921,600 1.152 m 2.00m 2.50m 3.125m 3.75m 15 0x0f 122,880 491,467 983,040 1,228,800 2,133,333 2,666,667 3,333,333 4.00m 14 0x0e 131,657 526,571 1,053,257 1,316,571 2,285,714 2,857,143 3,571,429 4,285,714 13 0x0d 141,785 567,077 1,134,277 1,417,846 2,461,538 3,076,923 3,846,154 4,615,384 12 0x0c 153,600 614,333 1,228,800 1,536,000 2,666,667 3,333,333 4,166,667 5.00m 11 0x0b 167,564 670,182 1,340,509 1,675,636 2,909,091 3,636,364 4,545,455 5,454545 10 0x0a 184,320 737,200 1,474,560 1,843,200 3.20m 4.00m 5.00m 6.00m 9 0x09 204,800 819,111 1,638,400 2,048,000 3,555,556 4,444,444 5,555,556 6,666,667 8 0x08 230,400 921,500 1,843,200 2,304,000 4.00m 5.00m 6.25m 7.50m 7 0x07 263,314 1,053,143 2,106,514 2,633,143 4,571,429 5,714,286 7,142,857 8,571428 6 0x06 307,200 1,228 ,667 2,457,600 3,072,000 5,333,333 6,666,667 8,333,333 10.00m 5 0x05 368,640 1,474,400 2,949,120 3,686,400 6.40m 8.00m 10.00m 12.00m 4 0x04 460,800 1,843,000 3,686,400 4,608,000 8.00m 10.00m 12.50m 15.00m table 35 : maximum baud r ates available at all ?tcr? sampling clock values 6.10.4 input clock options a system clock must be applied to xtli pin on the device. the speed of this clock determines the maximum baud rate at which the device can receive and transmit serial data. this maximu m is equal to one sixteenth of the frequency of the system clock (increasing to one quarter of this value if tcr=4 is used). the industry standard system clock for pc com ports is 1.8432 mhz, limiting the maximum baud rate to 115.2 kbps. the oxcf950 suppo rts system clocks up to 60mhz at 5v or 50 mhz at 3.3v and its flexible baud rate generation hardware means that almost any frequency can be optionally scaled down for compatibility with standard devices.
page 40 oxcf950 data sheet v1.1 oxford semiconductor ltd. designers have the option of using either ttl clock modules or crystal oscillator circuits for system clock input, with minimal additional components. the following two sections describe how each can be connected. 6.10.5 ttl clock module using a ttl module for the system clock simply requires the module to be su pplied with +5v power and gnd connections. the clock output can then be connected directly to xtli. xtlo should be left unconnected. clock xtli vdd figure 5 : ttl clock module connectivity 6.10.6 external 1x clock mode the transmitter and receiver ca n accept an external clock applied to the ri# and dsr# pins respectively. the clock options are selected using the clock select register (cks - see section 6.11.8 ). the transmitter and receiver may be configured to operate in 1x (isochronous) mode by setting cks[7] and cks[3], respectively. in isochronous mode, transmitter or receiver will use the 1x clock (usually but not necessarily an external source) where asynchronous framing is maintained using start, parity and stop - bits. however serial transmission and reception is synchronised to the 1x clock. in this mode asynchronous data may be transmitted at baud rates up to 60mbps. the local 1x clock source can be asserted on the dtr# pin. note that line drivers need to be capable o f transmission at data rates twice the system clock used (as one cycle of the system clock corresponds to 1 bit of serial data). also note that enabling modem interrupts is illegal in isochronous mode, as the clock signal will cause a continuous change to the modem status (unless masked in mdm register, see section 6.11.10 ). 6.10.7 crystal oscillator circuit the oxcf950 may be clocked by a crystal connected to xtli and xtlo or directly from a clock source connected to the xtli pin. th e circuit required to use the on - chip oscillator is shown opposite. r 1 r 2 c 1 c 2 xtli xtlo figure 6 : crystal oscillator circuit frequency range (mhz) c1 (pf) c2 (pf) r1 ( w w ) r2 ( w w ) 1.8432 ? 8 68 22 220k 470r 8 - 60 33 - 68 33 ? 68 220k - 2m2 470r table 36 : component values note: for better stability use a smaller value of r 1 . increase r 1 to reduce power consumption. the total capacitive load (c1 in series with c2) should be that specified by the crystal manufacturer (nom inally 16pf) 6.11 additional features 6.11.1 additional status register ?asr? asr[0]: transmitter disabled logic 0 t the transmitter is not disabled by in - band flow control. logic 1 t the receiver has detected an xoff, and has disabled the transmitter. this bit i s cleared after a hardware reset or channel software reset. the software driver may write a 0 to this bit to re - enable the transmitter if it was disabled by in - band flow control. writing a 1 to this bit has no effect. asr[1]: remote transmitter disabled logic 0 t the remote transmitter is not disabled by in - band flow control. logic 1 t the transmitter has sent an xoff character, to disable the remote transmitter. (cleared when a subsequent xon is sent). this bit is cleared after a hardware reset or chann el software reset. the software driver may write a 0 to this bit to re - enable the remote transmitter (an xon is transmitted). writing a 1 to this bit has no effect. note : the remaining bits (asr[7:2]) of this register are read only asr[2]: rts this is t he complement of the actual state of the rts# pin when the device is not in loopback mode. the driver software can determine if the remote transmitter is disabled by rts# out - of - band flow control by reading this bit. in
page 41 oxcf950 data sheet v1.1 oxford semiconductor ltd. loopback mode this bit reflects the flow control status rather than the pin?s actual state. asr[3]: dtr this is the complement of the actual state of the dtr# pin when the device is not in loopback mode. the driver software can determine if the remote transmitter is disabled by dtr# out - of - band flow control by reading this bit. in loopback mode this bit reflects the flow control status rather than the pin?s actual state. asr[4]: special character detected logic 0 t no special character has been detected. logic 1 t a special character has be en received and is stored in the rhr. this can be used to determine whether a level 5 interrupt was caused by receiving a special character rather than an xoff. the flag is cleared following the read of the asr. asr[5]: reserved this bit is unused in the oxcf950 and reads ?0?. asr[6]: fifo size logic 0 t fifos are 16 deep if fcr[0] = 1. logic 1 t fifos are 128 deep if fcr[0] = 1. note: if fcr[0] = 0, the fifos are 1 deep. asr[7]: transmitter idle logic 0 t transmitter is transmitting. logic 1 t transmi tter is idle. this bit reflects the state of the internal transmitter. it is set when both the transmitter fifo and shift register are empty. 6.11.2 fifo fill levels ?tfl & rfl? the number of characters stored in the thr and rhr can be determined by reading th e tfl and rfl registers respectively. as the uart clock is asynchronous with respect to the processor, it is possible for the levels to change during a read of these fifo levels. it is therefore recommended that the levels are read twice and compared to ch eck that the values obtained are valid. the values should be interpreted as follows: 1. the number of characters in the thr is no greater than the value read back from tfl. 2. the number of characters in the rhr is no less than the value read back from rfl. 6.11.3 additional control register ?acr? the acr register is located at offset 0x00 of the icr acr[0]: receiver disable logic 0 t the receiver is enabled, receiving data and storing it in the rhr. logic 1 t the receiver is disabled. the receiver continues to o perate as normal to maintain the framing synchronisation with the receive data stream but received data is not stored into the rhr. in - band flow control characters continue to be detected and acted upon. special characters will not be detected. changes to this bit will only be recognised following the completion of any data reception pending. acr[1]: transmitter disable logic 0 t the transmitter is enabled, transmitting any data in the thr. logic 1 t the transmitter is disabled. any data in the thr is not transmitted but is held. however, in - band flow control characters may still be transmitted. changes to this bit will only be recognised following the completion of any data transmission pending. acr[2]: enable automatic dsr flow control logic 0 t normal . the state of the dsr# line does not affect the flow control. logic 1 t data transmission is prevented whenever the dsr# pin is held inactive high. this bit provides another automatic out - of - band flow control facility using the dsr# line. acr[4:3]: dtr# line configuration when bits 4 or 5 of cks (offset 0x03 of icr) are set, the transmitter 1x clock or the output of the baud rate generator (nx clock) are asserted on the dtr# pin, otherwise the dtr# pin is defined as follows: logic [00] t dtr# is compati ble with 16c450, 16c550, 16c650 and 16c750 (i.e. normal). logic [01] t dtr# pin is used for out - of - band flow control. it will be forced inactive high if the receiver fifo level (?rfl?) reaches the upper flow control threshold. dtr# line will be re - activate d when the rfl drops below the lower threshold (see fcl & fch). logic [10] t dtr# pin is configured to drive the active low enable pin of an external rs485 buffer. in this configuration the dtr# pin will be forced low whenever the transmitter is not empty (lsr[6]=0), otherwise dtr# pin is high.
page 42 oxcf950 data sheet v1.1 oxford semiconductor ltd. logic [11] t dtr# pin is configured to drive the active - high enable pin of an external rs485 buffer. in this configuration, the dtr# pin will be forced high whenever the transmitter is not empty (lsr[6]=0), otherwi se dtr# pin is low. if the user sets acr[4], then the dtr# line is controlled by the status of the transmitter empty bit of lcr. when acr[4] is set, acr[3] is used to select active high or active low enable signals. in half - duplex systems using rs485 prot ocol, this facility enables the dtr# line to directly control the enable signal of external 3 - state line driver buffers. when the transmitter is empty the dtr# would go inactive once the sout line returns to it?s idle marking state. acr[5]: 950 mode trig ger levels enable logic 0 t interrupts and flow control trigger levels are as described in fcr register and are compatible with 16c650/16c750 modes. logic 1 t 950 specific enhanced interrupt and flow control trigger levels defined by rtl, ttl, fcl and fch are enabled. acr[6]: icr read enable logic 0 t the line status register is readable. logic 1 t the indexed control registers are readable. setting this bit will map the icr set to the lsr location for reads. during normal operation this bit should be cle ared. acr[7]: additional status enable logic 0 t access to the asr, tfl and rfl registers is disabled. logic 1 t access to the asr, tfl and rfl registers is enabled. when acr[7] is set, the mcr and lcr registers are no longer readable but remain writabl e, and the tfl and rfl registers replace them in the memory map for read operations. the ier register is replaced by the asr register for all operations. the software driver may leave this bit set during normal operation, since mcr, lcr and ier do not gene rally need to be read. 6.11.4 transmitter trigger level ?ttl? the ttl register is located at offset 0x04 of the icr whenever 950 trigger levels are enabled (acr[5]=1), bits 4 and 5 of fcr are ignored and an alternative arbitrary transmitter interrupt trigger le vel can be defined in the ttl register. this 7 - bit value provides a fully programmable transmitter interrupt trigger facility. in 950 mode, a priority level 3 interrupt occurs indicating that the transmitter buffer requires more characters when the interru pt is not masked (ier[1]=1) and the transmitter fifo level falls below the value stored in the ttl register. the value 0 (0x00) has a special meaning. in 950 mode when the user writes 0x00 to the ttl register, a level 3 interrupt only occurs when the fifo and the transmitter shift register are both empty and the sout line is in the idle marking state. this feature is particularly useful to report back the empty state of the transmitter after its fifo has been flushed away. 6.11.5 receiver interrupt. trigger level ?rtl? the rtl register is located at offset 0x05 of the icr whenever 950 trigger levels are enabled (acr[5]=1), bits 6 and 7 of fcr are ignored and an alternative arbitrary receiver interrupt trigger level can be defined in the rtl register. this 7 - bit va lue provides a fully programmable receiver interrupt trigger facility as opposed to the limited trigger levels available in 16c650 and 16c750 devices. it enables the system designer to optimise the interrupt performance hence minimising the interrupt overh ead. in 950 mode, a priority level 2 interrupt occurs indicating that the receiver data is available when the interrupt is not masked (ier[0]=1) and the receiver fifo level reaches the value stored in this register. 6.11.6 flow control levels ?fcl & fch? the fc l and fch registers are located at offsets 0x06 and 0x07 of the icr respectively enhanced software flow control using xon/xoff and hardware flow control using rts#/cts# and dtr#/dsr# are available when 950 mode trigger levels are enabled (acr[5]=1). impro ved flow control threshold levels are offered using flow control lower trigger level (?fcl?) and flow control higher trigger level (?fch?) registers to provide a greater degree of flexibility when optimising the flow control performance. generally, these f acilities are only available in enhanced mode. in 650 mode, in - band flow control is enabled using the efr register. an xoff character is transmitted when the receiver fifo exceeds the upper trigger level defined by fcr[7:6] as described in section 6.4.1 . an xon is then sent when the fifo is read down to the lower fill level. the flow control is enabled and the appropriate mode selected using efr[3:0]. in 950 mode, the flow control thresholds defined by fcr[7:6] are ignored. i n this mode threshold levels are programmed using fcl and fch. when in - band flow control is enabled (defined by efr[3:0]) and the receiver fifo level (?rfl?) reaches the value programmed in the fch register, an xoff is transmitted to stop the flow of seri al data . the flow is resumed when the receiver fifo fill level falls to below the value programmed in the fcl
page 43 oxcf950 data sheet v1.1 oxford semiconductor ltd. register, at which point an xon character is sent. the fcl value of 0x00 is illegal. for example if fcl and fch contain 64 and 100 respectively, xoff is transmitted when the receiver fifo contains 100 characters, and xon is transmitted when sufficient characters are read from the receiver fifo such that there are 63 characters remaining. cts/rts and dsr/dtr out - of - band flow control use the same t rigger levels as in - band flow control. when out - of - band flow control is enabled, rts# (or dtr#) line is de - asserted when the receiver fifo level reaches the upper limit defined in the fch and is re - asserted when the receiver fifo is drained below the lower limit defined in fcl. when 950 trigger levels are enabled (acr[5]=1), the cts# flow control functions as in 650 mode and is configured by efr[7]. however, when efr[6] is set, rts# is automatically de - asserted when rfl reaches fch and re - asserted when rfl drops below fcl. dsr# flow control is configured with acr[2]. dtr# flow control is configured with acr[4:3]. 6.11.7 device identification registers the identification registers is located at offsets 0x08 to 0x0b of the icr the 950 offers four bytes of device i dentification. the device id registers may be read using offset values 0x08 to 0x0b of the indexed control register. registers id1, id2 and id3 identify the device as an ox16c950 type and return 0x16, 0xc9 and 0x50 respectively. the rev register resides at offset 0x0b of icr and identifies the revision of 950 core. this register returns 0x06 for the oxcf950. 6.11.8 clock select register ?cks? the cks register is located at offset 0x03 of the icr this register is cleared to 0x00 after a hardware reset to maintain compatibility with 16c550, but is unaffected by software reset. this allows the user to select a clock source and then reset the channel to work - around any timing glitches. cks[1:0]: receiver clock source selector logic [00] t the output of baud rate gen erator (internal bdout#) is selected for the receiver clock. logic [01] t the dsr# pin is selected for the receiver clock. logic [10] t the output of baud rate generator (internal bdout#) is selected for the receiver clock. logic [11] t the transmitter clock is selected for the receiver. this allows ri# to be used for both transmitter and receiver. cks[2]: reserved this bit is unused in the oxcf950 and should be written with ?0?. cks[3]: receiver 1x clock mode selector logic 0 t the receiver is in n x clock mode as defined in the tcr register. after a hardware reset the receiver operates in 16x clock mode, i.e. 16c550 compatibility. logic 1 t the receiver is in isochronous 1x clock mode. cks[5:4]: transmitter 1x clock or baud rate generator output ( bdout) on dtr# pin logic [00] t the function of the dtr# pin is defined by the setting of acr[4:3]. logic [01] t the transmitter 1x clock (bit rate clock) is asserted on the dtr# pin and the setting of acr[4:3] is ignored. logic [10] t the output of baud r ate generator (nx clock) is asserted on the dtr# pin and the setting of acr[4:3] is ignored. logic [11] t reserved. cks[6]: transmitter clock source selector logic 0 t the transmitter clock source is the output of the baud rate generator (550 compatibili ty). logic 1 t the transmitter uses an external clock applied to the ri# pin. cks[7]: transmitter 1x clock mode selector logic 0 t the transmitter is in nx clock mode as defined in the tcr register. after a hardware reset the transmitter operates in 16x clock mode, i.e. 16c550 compatibility. logic 1 t the transmitter is in isochronous 1x clock mode. 6.11.9 nine - bit mode register ?nmr? the nmr register is located at offset 0x0d of the icr the 950 offers 9 - bit data framing for industrial multi - drop applications . 9 - bit mode is enabled by setting bit 0 of the nine - bit mode register (nmr). in 9 - bit mode the data length setting in lcr[1:0] is ignored. furthermore as parity is permanently disabled, the setting of lcr[5:3] is also ignored. the receiver stores the 9t h bit of the received data in lsr[2] (where parity error is stored in normal mode). note that the 950 provides a 128 - deep fifo for lsr[3:1]. the transmitter fifo is 9 - bit wide and 128 deep. the user
page 44 oxcf950 data sheet v1.1 oxford semiconductor ltd. should write the 9th (msb) data bit in spr[0] first and then write the other 8 bits to thr. as parity mode is disabled, lsr[7] is set whenever there is an overrun, framing error or received break condition. it is unaffected by the contents of lsr[2] (now the received 9th data bit). in 9 - bit mode, in - band flo w control is disabled regardless of the setting of efr[3:0] and the xon1/xon2/xoff1 and xoff2 registers are used for special character detection. interrupts in 9 - bit mode: while ier[2] is set, upon receiving a character with status error, a level 1 inter rupt is asserted when the character and the associated status are transferred to the fifo. the 950 can assert an optional interrupt if a received character has its 9 th bit set. as multi - drop systems often use the 9 th bit as an address bit, the receiver is able to generate an interrupt upon receiving an address character. this feature is enabled by setting nmr[2]. this will result in a level 1 interrupt being asserted when the address character is transferred to the receiver fifo. in this case, as long as there are no errors pending, i.e. lsr[1], lsr[3], and lsr[4] are clear, '0' can be read back from lsr[7] and lsr[1], thus differentiating between an ?address? interrupt and receiver error or overrun interrupt in 9 - bit mode. note however that should an ove rrun or error interrupt actually occur, an address character may also reside in the fifo. in this case, the software driver should examine the contents of the receiver fifo as well as process the error. the above facility produces an interrupt for recogni zing any ?address? characters. alternatively, the user can configure 950 core to match the receiver data stream with up to four programmable 9 - bit characters and assert a level 5 interrupt after detecting a match. the interrupt occurs when the character is transferred to the fifo (see below). nmr[0]: 9 - bit mode enable logic 0 t 9 - bit mode is disabled. logic 1 t 9 - bit mode is enabled. nmr[1]: enable interrupt when 9 th bit is set logic 0 t receiver interrupt for detection of an ?address? character (i.e. 9 th bit set) is disabled. logic 1 t receiver interrupt for detection of an ?address? character (i.e. 9 th bit set) is enabled and a level 1 interrupt is asserted. special character detection while the uart is in both 9 - bit mode and enhanced mode, setting ie r[5] will enable detection of up to four ?address? characters. the least significant eight bits of these four programmable characters are stored in special characters 1 to 4 (xon1, xon2, xoff1 and xoff2 in 650 mode) registers and the 9 th bit of these chara cters are programmed in nmr[5] to nmr[2] respectively. nmr[2]: bit 9 of special character 1 nmr[3]: bit 9 of special character 2 nmr[4]: bit 9 of special character 3 nmr[5]: bit 9 of special character 4 nmr[7:6]: reserved bits 6 and 7 of nmr are always cleared and reserved for future use. 6.11.10 modem disable mask ?mdm? the mdm register is located at offset 0x0e of the icr this register is cleared after a hardware reset to maintain compatibility with 16c550. it allows the user to mask interrupts and control sl eep operation due to individual modem lines or the serial input line. mdm[0]: disable delta cts logic 0 t delta cts is enabled. it can generate a level 4 interrupt when enabled by ier[3]. delta cts can wake up the uart when it is asleep under auto - sleep o peration. logic 1 t delta cts is disabled. it can not generate an interrupt or wake up the uart. mdm[1]: disable delta dsr logic 0 t delta dsr is enabled. it can generate a level 4 interrupt when enabled by ier[3]. delta dsr can wake up the uart when it i s asleep under auto - sleep operation. logic 1 t delta dsr is disabled. in can not generate an interrupt or wake up the uart. mdm[2]: disable trailing edge ri logic 0 t trailing edge ri is enabled. it can generate a level 4 interrupt when enabled by ier[3 ]. trailing edge ri can wake up the uart when it is asleep under auto - sleep operation. logic 1 t trailing edge ri is disabled. in can not generate an interrupt or wake up the uart. mdm[3]: disable delta dcd logic 0 t delta dcd is enabled. it can generate a level 4 interrupt when enabled by ier[3]. delta dcd can wake up the uart when it is asleep under auto - sleep operation. logic 1 t delta dcd is disabled. in can not generate an interrupt or wake up the uart.
page 45 oxcf950 data sheet v1.1 oxford semiconductor ltd. mdm[7:4]: reserved these bits must be set to ?0 000? 6.11.11 readable fcr ?rfc? the rfc register is located at offset 0x0f of the icr this read - only register returns the current state of the fcr register (note that fcr is write - only). this register is included for diagnostic purposes. 6.11.12 good - data status registe r ?gds? the gds register is located at offset 0x10 of the icr good data status is set when the following conditions are true: isr reads level0 (no interrupt), level2 or 2a (receiver data) or level3 (thr empty) interrupt. lsr[7] is clear i.e. no parity erro r, framing error or break in the fifo. lsr[1] is clear i.e. no overrun error has occurred. gds[0]: good data status gds[7:1]: reserved 6.11.13 dma status register ?dms? the dms register is located at offset 0x11 of the icr. this register is unused in the oxcf950 except for test purposes. 6.11.14 port index register ?pix? the pix register is located at offset 0x12 of the icr. this read - only register gives the uart index. for a single channel device such as the oxcf950 this reads ?0?. 6.11.15 clock alteration register ?cka? the ck a register is located at offset 0x13 of the icr. this register adds additional clock control mainly for isochronous and embedded applications. the register is effectively an enhancement to the cks register. this register is cleared to 0x00 after a hardware reset to maintain compatibility with 16c550, but is unaffected by software reset. this allows the user to select a clock mode and then reset the channel to work - around any timing glitches. cka[0]: invert internal rx clock this allows the sense of the rece iver clock to be inverted. the main use for this would be to invert an isochronous input clock so the falling edge were used for sampling rather than the rising edge. cka[1]: invert internal tx clock this allows the sense of the transmitter clock to be inv erted. the main use for this would be to invert an isochronous input clock so the rising edge were used for data output rather than the falling edge. cka[2]: invert dtr this allows the dtr output signal to be inverted, which is most likely to be useful whe n dtr is selected as being the transmitter clock for isochronous applications. 6.11.16 misc data register the misc data register allows the user to select access to either the local configuration registers or the local bus, when the oxcf950 is operating in local bus mode. it has no effect when the oxcf950 is operating in normal mode. table 37 describes the mdr register operation. mdr bits description 7:1 reserved for future use : ?0? must be written to these. 0 active low local bus e nable (local bus mode only). setting this bit to ?0? allows access to local bus. setting this bit to ?1? allows access to local configuration registers. table 37 : mdr operation note that the operation of the mdr register in no way affects the operation of the uart.
page 46 oxcf950 data sheet v1.1 oxford semiconductor ltd. 7 s erial eeprom s pecification the oxcf950 can be configured using an optional serial electrically - erasable programmable read only memory (eeprom). if the eeprom is not present, the device will remain in its default co nfiguration after reset. although this may be adequate for some applications, many will benefit from the degree of programmability afforded by this feature. the eeprom also allows accesses to the integrated uart, which can be useful for default setups. th e eeprom interface supports a variety of serial eeprom devices that have a proprietary serial interface known as microwire tm . this interface has four pins which supply the memory device with a clock, a chip - select, and serial data input and output lines. i n order to read from such a device, a controller has to output serially a read command and address, then input serially the data. the interface controller has been designed to handle (auto detect) the following list of compatible devices that have a 16 - bit data word format but differ in memory size (and hence the number of address bits). nm93c46 (64 words), nm93c56 (128 words), devices with 256 words, 512 words and 1024 words. the oxcf950 incorporates a controller module which reads data from the serial e eprom and writes data into the relevant register space. it performs this operation in a sequence which starts immediately after a cf/pcmcia reset and ends either when the controller finds no eeprom is present or when it reaches the end of the eeprom data. following device configuration, driver software can access the serial eeprom through four bits in the device - specific local configuration register esc[4:1]. software can use this register to manipulate the device pins in order to read and modify the eepro m contents as desired. a windows based utility to program the eeprom is available. for further details please contact your local distributor. microwire tm is a trade mark of national semiconductor. for a description of microwire tm , please refer to nation al semiconductor data manuals. 7.1 eeprom data organisation the serial eeprom data is divided into 4 zones. the size of each zone is an exact multiple of 16 - bit words. zone 0 is allocated to the header. an eeprom program must contain a valid header before an y further data is interrogated. the eeprom can be programmed from the cf/pcmcia interface.. the general eeprom data structure is shown in table 5 . data zone size (words) description 0 one header 1 two or more cis configuratio n 2 one or more local configuration registers 3 multiples of two function access table 38 : eeprom data format 7.2 zone 0 : header the zone header identifies the eeprom program as valid, and is the first value to be read and is at add ress 0 in the eeprom. it has the following format:
page 47 oxcf950 data sheet v1.1 oxford semiconductor ltd. bits description 15:4 these bits should return 0xb12 to identify a valid program. once it reads this value from these bits it sets bit [tbd] in the tbd register in the local register. 3 reserved 2 1 = zone 1 (cis configuration) data exists 0 = zone 1 does not exist 1 1 = zone 2 (local register configuration) data exists 0 = zone 2 does not exist 0 1 = zone 3 (function access) data exists 0 = zone 3 does not exist table 39 : z one 0 format the programming data for each zone follows the proceeding zone if it exists. for example a header value of 0xb127 indicates that all zones exist and they follow one another, while 0xb123 indicates that only zone 2 and zone 3 exist. 7.3 zone1 : card information structure this zone allows the user to provide custom tuple information for the card information structure (cis), overriding the default hard - coded tuple values found in the device. downloading into this zone programs the internal ram w ith the user?s tuple data and automatically sets the source of the cis to be this ram, and not the hard coded value. note: if the cis is to be modified using the eeprom, t uple values presented to the host will be those programmed into the ram. the user m ust ensure that the ram contains all the correct tuples for the particular application. tuple data bytes are interrogated until the specified number of type data - bytes have been collected in which case the eeprom moves over to the next zone if it exists, or the eeprom download terminates if no other zones are present. the zone contains two areas to download to: attribute memory (ram address (0 to 127) common memory (ram address (128 to 255) the first word in this zone describes how many bytes of data are present in each zone. the next words contain the tuple data. the first set of words contain the tuples for the common memory (if present) followed by the tuple words for the attribute memory. description byte number 15 8 7 0 1 st word number of tu ple bytes in common memory (n) note : must be a value of multiple of 2 number of tuple bytes in attribute memory (m) note : must be a value of multiple of 2 2 nd word attribute mem.tuple byte 1 attribute mem.tuple byte 0 3 rd word attribute mem.tuple byte 3 attribute mem.tuple byte 2 (n + 1) th word attribute mem.tuple byte n - 1 attribute mem.tuple byte n - 2 (n + 2) th word common mem. tuple byte 1 common mem. tuple byte 0 (n + 3) th word common mem. tuple byte 3 common mem. tuple byte 2 (n + m + 1) th wo rd common mem. tuple byte m - 1 common mem. tuple byte m - 2 table 40 : word format for zone 1 7.4 zone 2 : local register configuration the zone2 region of eeprom contains the program value of the vendor - specific local configuration regi sters using one or more configuration words. registers are selected using a 7 - bit byte - offset field. this offset value is the offset from address 8 (allowing addresses 0 to 7 to be reserved for function access).
page 48 oxcf950 data sheet v1.1 oxford semiconductor ltd. bits description 15 ?0? = there are no mor e configuariton words to follow in zone 2. move to next available zone or end eeprom program if no more zones are enabled in the header. 1?1 = there is another configuration word to follow for the local configuration registers 14:8 local register address (in io space). valid address range is 8 to 15 7:0 8 - bit value of the register to be programmed table 41 : word format for zone 2 7.5 zone 3 : function access (uart) zone 3 allows the uart to be pre - configured, prior to any cf/pcmc ia accesses. this is very useful when the uart needs to run with (typically generic) device drivers and these drivers are not capable of utilising the enhanced features/modes of the uart (e.g. 950 mode) that are required for high performance. by using fun ction access, the uart registers can be accessed (setup) via the eeprom to customize the uart features before control is handed to the device drivers. each 8 - bit access is equivalent to accessing the uart function through io space (addresses 0 to 7), with the exception that a function read access does not return any data (it is discarded). the uart function behaves as though these function accesses via the eeprom were corresponding cf/pcmcia access. each entry for zone 3 comprises of 2 16 - bit words. the format is as shown. 1 st word (of word pair) bits description 15 value = 1 14:12 reserved (write 0?s) 11 0 = function read access 1 = function write access 10:8 reserved (write 0?s) 7:0 io address to access (valid values 0 to 7) table 42 : zone 3 (first word) format 2 nd word (of word pair) bits description 15 ?1? = another function access word pair to follow ?0? = no more function access word pairs 14:8 reserved (write 0?s) 7:0 data to be written to specified addresses. field is unused for function access reads (set to 0) table 43 : zone 3 (second word) format
page 49 oxcf950 data sheet v1.1 oxford semiconductor ltd. 8 o perating c onditions symbol parameter min. max. units v dd dc supply voltage - 0.3 7.0 v v in dc input voltage - 0.3 v dd + 0.3 v i in dc inpu t current +/ - 10 ma t stg storage temperature - 40 125 c table 44 : absolute maximum ratings symbol parameter min max units v dd dc supply voltage 3 5.25 v t o operating temperature range 0 70 c table 45 : recommended operating conditions
page 50 oxcf950 data sheet v1.1 oxford semiconductor ltd. 9 dc e lectrical c haracteristics 9.1 5v operation symbol parameter condition min. max. units v dd supply voltage commercial 4.75 5.25 v v ih input high voltage cmos interface note1 cmos schmitt trigger 0.7 v dd 3.0 v v il inp ut low voltage cmos interface note 1 cmos schmitt trigger 0.3 v dd 1.5 v v h schmitt hysteresis cmos 0.8 1.0 v c il capacitance of input buffers 5.0 pf c ol capacitance of output buffers 10.0 pf i ih input high leakage current v in = v dd - 10 10 m a i il input low leakage current v in = v ss - 10 10 m a v oh output high voltage i oh = 0.8 ma v dd ? 0.1 v v oh output high voltage i oh = 2 ma note2 4 v v ol output low voltage i ol = 0.8 ma 0.1 v v ol output low voltage i ol = 2 ma note2 0.4 v i oz 3 - state outpu t leakage current - 10 10 m a i st static current note3 v in = v dd or v ss - 40 m a i cc operating supply current in normal mode note3 f ck = 1.8432 mhz f ck = 8.192 mhz f ck = 60.00 mhz 5.4 6.8 18.2 5.8 7.4 19.8 ma operating supply current in sleep mode note 3 f ck = 1.8432 mhz f ck = 8.192 mhz f ck = 60.00 mhz - 5.0 5.6 10.2 ma table 46 : dc electrical characteristics note 1: all input buffers are cmos with the exception of reset, z_cts,z_dsr, z_dcd and z_ri which are schmitt triggered . note 2: all output buffers are 4 ma drive capability, with the exception of the eeprom signals, z_iois16, z_ireq and the uart output signals which are all 2 ma drive capability. note 3: divider ratio of 1. these are sample measured figures.
page 51 oxcf950 data sheet v1.1 oxford semiconductor ltd. 9.2 3v operation symbol parameter condition min. max. units v dd supply voltage commercial 3.15 3.45 v v ih input high voltage cmos interface note1 cmos schmitt trigger 0.7 v dd 1.6 v v il input low voltage cmos interface note 1 cmos schmitt trigger 0.2 v dd 1.2 v v h s chmitt hysteresis cmos 0.6 0.8 v c il capacitance of input buffers 5.0 pf c ol capacitance of output buffers 10.0 pf i ih input high leakage current v in = v dd - 10 10 m a i il input low leakage current v in = v ss - 10 10 m a v oh output high voltage i oh = 2 ma note2 2.4 v v ol output low voltage i ol = 2 ma note2 0.4 v i oz 3 - state output leakage current - 10 10 m a i st static current note3 v in = v dd or v ss 40 m a i cc operating supply current in normal mode note3 f ck = 1.8432 mhz f ck = 8.192 mhz f ck = 5 0.00 mhz 2.2 3.0 5.0 2.4 3.3 5.6 ma operating supply current in sleep mode note3 f ck = 1.8432 mhz f ck = 8.192 mhz f ck = 50.00 mhz - 2.1 2.8 4.2 ma note 1: all input buffers are cmos with the exception of reset, z_cts,z_dsr, z_dcd and z_ri which are schmitt triggered. note 2: all output buffers are 2 ma drive capability, with the exception of the eeprom signals, z_iois16, z_ireq and the uart output signals which are all 1 ma drive capability. note 3: divider ratio of 1. these are sample measured figur es.
page 52 oxcf950 data sheet v1.1 oxford semiconductor ltd. 10 t iming w aveforms / ac c haracteristics 10.1 common memory access a[3:0], reg# t su (a) we#, iord#, iowr#, reset# = 1 t su (ce) ce1# oe# d[7:0] t a (oe) t dis (oe) valid data figure 7 : common memory read timing a[3:0], reg# t su (a) ce1# iord#, iowr#, reset# = 1 we# oe# d[7:0] (d in ) d[7:0] (d out ) t su (ce) t h (d) t en (we) t dis (oe) figure 8 : common memory write timing
page 53 oxcf950 data sheet v1.1 oxford semiconductor ltd. read access write access min (ns) max (ns) min (ns) max (ns) symbol 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v t su (a) 6 4 0 0 t su (ce) 0 0 0 0 t a (oe) 13 9 t dis (oe) 13 9 13 9 t h (d) 4 2 t en (we) 17 10 table 47 : common memory access timing specification 10.2 attribute memory access t su (ce) a[3:0], reg# ce1# oe# d[7:0] t su (a) t a (oe) t dis (oe) we#, iord#, iowr#, reset# = 1 valid data table 48 : attribute memory read timing a[3:0], reg# ce1# iord#, iowr#, reset# = 1 we# oe# d[7:0] (d in ) d[7:0] (d out ) t su (a) t su (ce) t dis (oe) t h (d) t en (we) table 49 : attribute memory write timi ng
page 54 oxcf950 data sheet v1.1 oxford semiconductor ltd. read access write access min (ns) max (ns) min (ns) max (ns) symbol 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v t su (a) 6 4 0 0 t su (ce) 0 0 0 0 t a (oe) 13 9 t dis (oe) 13 9 13 9 t h (d) 4 2 t en (we) 13 9 table 50 : attribute memory access timing specification 10.3 i/o access t su ce (iord) a[3:0] valid data ce1# iord# d[7:0] t su a (iord) t d (iord) t h (iord) oe#, we#, iowr#, reset# = 1 t su reg (iord) reg# figure 9 : i/o read timing t su ce (iowr) a[3:0] ce1# iowr# d[7:0] t su a (iowr) t h (iowr) t su (iowr) oe#, we#, iord#, reset# = 1 t su reg (iowr) reg# figure 10 : i/o write timing
page 55 oxcf950 data sheet v1.1 oxford semiconductor ltd. read access write ac cess min (ns) max (ns) min (ns) max (ns) symbol 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v t su a (iord) 0 0 t su reg (iord) 0 0 t su ce (iord) 0 0 t d (iord) 21 12 t h (iord) 16 12 t su a (iowr) 0 0 t su reg (iowr) 0 0 t su ce (iowr) 0 0 t su (iowr) 0 0 t h (iowr) 7 5 table 51 : i/o access timing specification 10.4 local bus access oe#, we#, iowr#, reset# = 1 a[3:0] ce1# iord# reg# lb_cs# lb_rd# t su ce (lb_cs) t su iord (lb_rd) t d iord (lb_rd) t d ce (lb_cs) figure 11 : local bus read timing
page 56 oxcf950 data sheet v1.1 oxford semiconductor ltd. oe#, we#, iord#, reset# = 1 a[3:0] ce1# iowr# reg# lb_cs# lb_wr# t su ce (lb_cs) t su iowr (lb_wr) t d iowr (lb_wr) t d ce (lb_cs) figure 12 : local bus write timing read access write access min (ns) max (ns) min (ns) max (ns) symbol 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v 3.3 v 5 v t su ce (lb_cs) 10 7 10 7 t d ce (lb_cs) 10 7 10 7 t d iord (lb_rd) 11 8 t su iord (lb_rd ) 11 8 t d iowr (lb_wr) 10 7 t su iowr (lb_wr) 10 7 table 52 : local bus access timing specification note: the external local bus is only available in local bus mode.
page 57 oxcf950 data sheet v1.1 oxford semiconductor ltd. d e dl a1 a2 a el b l e 11 p ackage i nformation figure 13 : device packaging dimension min nom max d 9.00 bsc dl 7.00 bsc e 9.00 bsc el 7.00 bsc a 1.20 a1 0.05 0.15 a2 0.95 1.00 1.05 b 0.17 0.22 0.27 e 0.50 l 0.45 0.60 0.75 0.0 7.0 table 53 : package dimensions note: all dimensions in millimetres. angles in degrees. #48 #1 dl
page 58 oxcf950 data sheet v1.1 oxford semiconductor ltd. 12 o rdering i nformation ox16 cf950 - tq - a revision package type ? 48 tqfp
page 59 oxcf950 data sheet v1.1 oxford semiconductor ltd. n otes this page has been intentionally left blank
page 60 oxcf950 data sheet v1.1 oxford semiconductor ltd. c ontact d etails oxford semiconductor ltd. 25 milton park abingdon oxfordshire ox14 4sh united kingdom telephone: +44 (0)1235 824900 fax: + 44 (0)1235 821141 sales e - mail: sales@oxsemi.com web site: http://www.oxsemi.com d isclaimer oxford semiconductor believes the information contained in this document to be accurate and reliable. however, it is subject to change without notice. no responsibility is assumed by oxford semiconductor for its use, nor for infringement of patents or other rights of third parties. no part of this publication may be reproduced, or transmitted in any form or by any means without th e prior consent of oxford semiconductor ltd. oxford semiconductor?s terms and conditions of sale apply at all times.


▲Up To Search▲   

 
Price & Availability of OX16CF950

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X